优化体验及性能 #3

Merged
pointer-to-bios merged 5 commits from pointer-to-bios/JungleOpenSourceProjectRepo:main into main 2024-04-27 06:46:10 +08:00
  1. 动态帧率限制:使用一个线程,不断获取当前monitor的帧率信息,并且增加一个delay_fps函数,使帧率与当前monitor的刷新率相同。
  2. 平滑缩放:Viewport按比例缩放,并根据窗口大小设置Viewport的位置。
  3. 处理焦点事件:失去焦点时游戏暂停,重新获得焦点无法继续。
  4. 增加按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
pointer-to-bios merged commit 2037b2f9ac into main 2024-04-27 06:46:10 +08:00
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: SuthbyPublic/JungleOpenSourceProjectDemoRepo#3
No description provided.