问题标签 [frame-rate]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
iphone - AVAudioPlayer - 帧率下降
我有一个简单的问题:我正在将一个 mp3 文件加载到一个 NSData 对象中,然后在我的游戏中使用 AVAudioPlayer 播放它。每隔一秒左右,帧速率就会下降,您会在屏幕上看到卡顿。这不是一个重大的放缓,但明显明显并破坏了游戏玩法。不使用 AVAudioPlayer 播放音乐曲目完全没有减速。
我怎样才能防止这种情况发生?
谢谢你。
弗洛里安
iphone - What causes frame rate loss?
I'm writing a game with cocos2d and I have noticed that the frame rate drops as the game progresses. I've checked for leaks but everything looks fine so I'm at a loss as to what to do next. Sorry if this is a really basic question but what sort of factors cause frame rate loss?
The problem seems to get worse when I clear the sprites from a layer. Sometimes the framerate jumps back to 60 but occasionally it drops down to 30 or lower and never recovers. After a few minutes the animations are noticably slower and the game pretty much grinds to a halt. I'm not sure if this is specific to cocos2d or a common issue in game development, but it renders the game unplayable :(
actionscript - Flash Player 神奇的帧率
很久以前(5 年多),我读过一篇关于 Flash Player 的最佳帧速率的文章。这篇文章通过一些计算推断出每秒 31 帧是运行电影的最佳 fps,并且在当时对我来说似乎是合乎逻辑的,并且从那以后一直使用 31 fps。
但是,我忘记了那篇文章的推理,我想知道 31 fps 是否仍然被认为是运行 swf 的良好或最佳 fps。
你喜欢什么样的 fps 用于你的 swf,为什么?
iphone - iPhone OpenGL fps 测试
谁能告诉我如何在屏幕上获取和显示正在运行的程序的 fps(帧速率)?
opengl - 如何让游戏的 FPS(使用 OpenGL)达到 800 FPS
我们如何以 500 - 800 FPS 的更高帧速率运行 OpenGL 应用程序(比如游戏)?
例如,AOE 2 以超过 700 FPS 的速度运行(我知道它与 DirectX 有关)。尽管我只是在游戏循环中清除缓冲区和交换缓冲区,但我只能获得大约 200(最大)FPS。我知道 FPS 不是一个很好的解决方案(并且还取决于硬件),但我觉得我错过了 OpenGL 中的一些概念。我有吗?请问有人可以给我一个提示吗?
iphone - iPhone OpenGL 呈现文本
有谁知道如何在 iphone 上呈现字符串?它用于显示我的每秒帧数 =p
actionscript-3 - 以更高的 FPS 在 ActionScript3 中加载对象
如何在 ActionScript 3 中以比使用 Loader 加载的实例更高的 fps 加载 swf?
谢谢!
opengl - OpenGL 帧率
测量我的 OpenGL 程序的帧速率的最佳方法是什么?
amazon - 基于良好使用的支付服务
亚马逊灵活支付服务似乎是一项完美的服务。这正是我们正在寻找的。不幸的是,由于我们不在美国(而是在英国),因此我们无法使用它。
我想知道是否有人知道我们可以使用的类似服务?我们想以美元和英镑出售产品。
我们需要为基于使用的服务添加付款。支付方式类似于 Amazon S3,客户每次使用需支付 0.1 美元(或类似费用)。
我们更喜欢预付费服务。客户第一次注册时,他们会被收取 5 美元并记入该金额。他们使用这项服务,直到 5 美元用完为止。然后应自动向客户收取另外 5 美元以添加到预付信用中。或者类似的东西会很好。
有任何想法吗?