优化时发现帧率不稳,有规律的一顿一顿的。
然后开始:perfHUD,profile,各种增加删除,各种机器、系统、工具。
最后发现是Max pre-rendered frames不小心开太大了。。。。。
也就是说原来是帧率“太平滑”了,偶尔卡一下就非常明显。
现在帧率不那么平滑了,看上去舒服多了。。。。。
谨此祭奠我的三天时间~~
ps.
Max pre-rendered frames用法参考
if your CPU is not as quick as your GPU then you'll get some input lag, this is where the Max Prerendered Frames comes to the rescue as its less job for your CPU (set it less than 3), if your CPU is quicker than your GPU then actually increasing the max-prerendered frames improves things. (don't go above 5 though).
Maximum Pre-Rendered Frames: If available, this option - previously known as 'Max Frames to Render Ahead' in old Forceware versions - controls the number of frames the CPU prepares in advanced of being rendered by the GPU. The default value is 3 - higher values tend to result in smoother but more laggy gameplay, while lower values can help reduce mouse and keyboard lag. However extremely low values such as 0 may hurt performance, so I recommend this option be kept at its default of 3 globally, and only adjusted downwards in specific game profiles. Remember, in most cases mouse lag is due to low framerates, so adjusting this option is not an automatic cure to lag issues, nor should it be the first thing you try. Finally, it only works in DirectX games, not OpenGL games.