优化体验及性能 #3
pointer-to-bios
commented 2024-04-27 06:45:51 +08:00
Owner
- 动态帧率限制:使用一个线程,不断获取当前monitor的帧率信息,并且增加一个delay_fps函数,使帧率与当前monitor的刷新率相同。
- 平滑缩放:Viewport按比例缩放,并根据窗口大小设置Viewport的位置。
- 处理焦点事件:失去焦点时游戏暂停,重新获得焦点无法继续。
- 增加按esc键暂停/继续游戏:暂停时,游戏不接收任何事件(除esc键外),在暂停状态中按下esc键游戏继续。游戏处于暂停状态时显示鼠标指针。
1. 动态帧率限制:使用一个线程,不断获取当前monitor的帧率信息,并且增加一个delay_fps函数,使帧率与当前monitor的刷新率相同。
2. 平滑缩放:Viewport按比例缩放,并根据窗口大小设置Viewport的位置。
3. 处理焦点事件:失去焦点时游戏暂停,重新获得焦点无法继续。
4. 增加按esc键暂停/继续游戏:暂停时,游戏不接收任何事件(除esc键外),在暂停状态中按下esc键游戏继续。游戏处于暂停状态时显示鼠标指针。
pointer-to-bios
added 5 commits 2024-04-27 06:45:52 +08:00
121fb7a687
补充readme和.gitignore
5b99adfe38
将被注释的blending enabling更改为选择性编译
37765e7cab
增加动态帧率限制,平滑缩放,处理焦点事件,增加按esc暂停功能
ad74332190
直接移除blending部分
57e8650cbd
update readme
pointer-to-bios
merged commit 2037b2f9ac into main 2024-04-27 06:46:10 +08:00
pointer-to-bios
referenced this issue from a commit 2024-04-27 06:46:10 +08:00
Merge pull request '优化体验及性能' (#3) from pointer-to-bios/JungleOpenSourceProjectRepo:main into main
Loading…
Reference in New Issue
No description provided.
Delete Branch "pointer-to-bios/JungleOpenSourceProjectRepo:main"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?