WM_PAINT 的帧率
有人能告诉我如何获得 WM_PAINT 消息的帧速率(以每秒帧数为单位)吗?我正在尝试制作一个软件渲染器,帧率对于调试非常重要。
Could anybody tell me please how can I get framerate of WM_PAINT message in frames per second? I'm trying to make a software renderer, and framerate is very important for debugging.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这个问题之前曾在此处提出过。作为附加提示,您可以使用动态分配的结构来存储与 FPS 相关的变量并使用 SetWindowLongPtr 来存储指向此结构的指针。
This question was asked previously here. As an additional hint, you can use a dynamically allocated structure to store your FPS-related variables and use SetWindowLongPtr to store a pointer to this structure.