12-14-2019, 12:17 AM
And it runs all my demo's lighting fast....which actually is a bit of an issue, it does not sync to the EGL frame swap, whcih is normally done with this command
EGLBoolean test = eglSwapInterval(display, 1); // 1 to lock speed to 60fps (assuming we are able to maintain it), 0 for immediate swap (may cause tearing) which will indicate actual frame rate
// on xu4 this seems to have no effect
but like the comment says, the XU4 isn't having any of it.. so my demos run at 150-200 fps.... its cool to see them run so fast, but its not quite what I want, I would have to add a delta time wait to ensure a usable frame rate, but only for the XU4. I've posted on their forums to see if there's a fix.
EGLBoolean test = eglSwapInterval(display, 1); // 1 to lock speed to 60fps (assuming we are able to maintain it), 0 for immediate swap (may cause tearing) which will indicate actual frame rate
// on xu4 this seems to have no effect
but like the comment says, the XU4 isn't having any of it.. so my demos run at 150-200 fps.... its cool to see them run so fast, but its not quite what I want, I would have to add a delta time wait to ensure a usable frame rate, but only for the XU4. I've posted on their forums to see if there's a fix.
Brian Beuken
Lecturer in Game Programming at Breda University of Applied Sciences.
Author of The Fundamentals of C/C++ Game Programming: Using Target-based Development on SBC's
Lecturer in Game Programming at Breda University of Applied Sciences.
Author of The Fundamentals of C/C++ Game Programming: Using Target-based Development on SBC's