1
DotNet / Re: Pushing everything to a VertexArray each frame
« on: June 14, 2014, 10:17:15 pm »
So, apparently VSync doesn't work the same way SetFramerateLimit does. If I set the framerate limit to 60, I get normal CPU usage. If I set VSync to true, I still get crazy framerate issues because all gets drawn so many times?
@zsbzsb: the problem is with the infrastructure though, so the minimal example would still need quite a few files and such. Is that ok?
EDIT: So yeah, setFramerateLimit seems to fix the issue (while VSync just does... nothing? wtf?). Now it's much better, wastes a lot less CPU and the computer fans don't make so much noise.
I think I'll keep the current method I'm using, while testing it further and improving it a bit (such as rendering tilemaps directly instead of batching them with the rest, only rendering the stuff on screen, etc.).
Thank you guys!
@zsbzsb: the problem is with the infrastructure though, so the minimal example would still need quite a few files and such. Is that ok?
EDIT: So yeah, setFramerateLimit seems to fix the issue (while VSync just does... nothing? wtf?). Now it's much better, wastes a lot less CPU and the computer fans don't make so much noise.
I think I'll keep the current method I'm using, while testing it further and improving it a bit (such as rendering tilemaps directly instead of batching them with the rest, only rendering the stuff on screen, etc.).
Thank you guys!