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

WinGDI: Lower cpu usage to ~0% #2304

Merged
merged 1 commit into from Aug 7, 2013

Conversation

Projects
None yet
3 participants
@1942rob
Copy link
Contributor

commented Aug 3, 2013

This should not have any performance hit on the gamespeed.

Robert Sørlie
WinGDI: Lower cpu usage to ~0%
This should not have any performance hit on the gamespeed.
@CataJenkins

This comment has been minimized.

Copy link

commented Aug 3, 2013

Build successful!
Refer to this link for build results: http://ci.narc.ro/job/Cataclysm-PullRequests/183/

@kevingranade

This comment has been minimized.

Copy link
Member

commented Aug 3, 2013

Seems reasonable, a few waits in that busy loop, and the winmm library allows high-resolution timers. I guess there isn't a portable yield function? Can you outline what this winmm library is, a quick search didn't turn up anything notable, which is odd because usually MSDN articles bubble right to the top.

@1942rob

This comment has been minimized.

Copy link
Contributor Author

commented Aug 3, 2013

[paste] winmm.lib is a module for the Windows Multimedia API, which contains low-level audio and joystick functions.[/paste] That, and timer functions.

@kevingranade kevingranade merged commit 406653b into CleverRaven:master Aug 7, 2013

@1942rob 1942rob deleted the 1942rob:wingdi-cpu-usage branch Aug 7, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.