fps帧数什么fps多少算流畅畅

lol游戏帧数科普教你怎么流畅玩英雄联盟_图文_百度文库
两大类热门资源免费畅读
续费一年阅读会员,立省24元!
lol游戏帧数科普教你怎么流畅玩英雄联盟
||暂无简介
风林网络权威攻略部|
总评分0.0|
阅读已结束,如果下载本文需要使用2下载券
想免费下载本文?
定制HR最喜欢的简历
下载文档到电脑,查找使用更方便
还剩2页未读,继续阅读
定制HR最喜欢的简历
你可能喜欢Swift获取当前页面帧数值FPS,判断当前页面流畅程度。 - 简书
Swift获取当前页面帧数值FPS,判断当前页面流畅程度。
本文摘自github,如果侵权,请联系我删除,
Swift获取当前页面帧数值FPS,判断当前页面流畅程度。
97C8.tmp.jpg
// V2FPSLabel.swift
// V2ex-Swift
// Created by huangfeng on 1/15/16.
// Copyright (C) 2016 Fin. All rights reserved.
import UIKit
//重写自 YYFPSLabel
///ibireme/YYText/blob/master/Demo/YYTextDemo/YYFPSLabel.m
class V2FPSLabel: UILabel {
private var _link :CADisplayLink?
private var _count:Int = 0
private var _lastTime:NSTimeInterval = 0
private let _defaultSize = CGSizeMake(55, 20);
override init(frame: CGRect) {
var targetFrame = frame
if frame.size.width == 0 && frame.size.height == 0{
targetFrame.size = _defaultSize
super.init(frame: targetFrame)
self.layer.cornerRadius = 5
self.clipsToBounds = true
self.textAlignment = .Center
self.userInteractionEnabled = false
self.textColor = UIColor.whiteColor()
self.backgroundColor = UIColor(white: 0, alpha: 0.7)
self.font = UIFont(name: "Menlo", size: 14)
weak var weakSelf = self
_link = CADisplayLink(target: weakSelf!, selector:#selector(V2FPSLabel.tick(_:)) );
_link!.addToRunLoop(NSRunLoop .mainRunLoop(), forMode:NSRunLoopCommonModes)
required init?(coder aDecoder: NSCoder) {
super.init(coder: aDecoder)
func tick(link:CADisplayLink) {
if _lastTime == 0 {
_lastTime = link.timestamp
_count += 1
let delta = link.timestamp - _lastTime
if delta & 1 {
_lastTime = link.timestamp
let fps = Double(_count) / delta
_count = 0
let progress = fps / 60.0;
self.textColor = UIColor(hue: CGFloat(0.27 * ( progress - 0.2 )) , saturation: 1, brightness: 0.9, alpha: 1)
self.text = "\(Int(fps+0.5))FPS"经常看大神直播fps帧数都上100多,什么样的显卡才能达到-兴趣交流|休闲园地-LOL-英雄联盟-多玩游戏论坛 -
手机版 - Powered by Discuz!
丫的,770显卡居高不下
为啥风扇转速搞这么低啊...
我760还要活吗?

参考资料

 

随机推荐