Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V20.08 超大窗口(1080P+)刷新卡顿 #128

Open
MSEDGE-CORE opened this issue Dec 18, 2022 · 3 comments
Open

V20.08 超大窗口(1080P+)刷新卡顿 #128

MSEDGE-CORE opened this issue Dec 18, 2022 · 3 comments
Assignees

Comments

@MSEDGE-CORE
Copy link

delay_fps(120);
在1200800一切正常
切换到3840
2160特别卡顿,尤其是getmouse()时
稳定复现

@wysaid
Copy link
Owner

wysaid commented Dec 28, 2022

可以贴一下你的代码。 所谓的卡顿, 大概率是你代码的问题

@wysaid wysaid self-assigned this Dec 28, 2022
@MSEDGE-CORE
Copy link
Author

MSEDGE-CORE commented Dec 29, 2022

复现成功 EGE20.08 GCC10.3x64
image

Screenshot_20221229_121018
Screenshot_20221229_120949
Screenshot_20221229_120930
image

代码:
#include
#include <graphics.h>
using namespace std;
int main()
{
initgraph(-1,-1,INIT_NOBORDER);
setfont(getheight(),0,"Segoe UI Variable Display");
for(;;delay_fps(120))
{
cleardevice();
xyprintf(0,0,"%2f",getfps());
}
return 0;
}

@TheBadZhang
Copy link
Collaborator

delay_fps(120); 在1200_800一切正常 切换到3840_2160特别卡顿,尤其是getmouse()时 稳定复现

因为 ege 目前是纯 cpu(?)渲染的,所以 ege 性能和你处理器性能是挂钩的,在我的电脑上
12700H+32G ram,显示 2.8K 尺寸或者是 4K 尺寸分辨率,运行你的测试程序,
前者可以稳定运行在 120 fps附近,后者掉落到 90fps,仍高于我显示器的刷新帧率

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants