From ec9e0cbc50a6fbce525ec424984523deb691cece Mon Sep 17 00:00:00 2001 From: NicJA Date: Sun, 28 Apr 2019 19:25:57 +0000 Subject: [PATCH] calculate the actual fps a bit more accurately. git-svn-id: https://svn.aros.org/svn/aros/trunk/AROS@56366 fb15a70f-31f2-0310-bbcc-cdcc74a49acc --- developer/debug/test/gl/glsimplerendering.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/developer/debug/test/gl/glsimplerendering.c b/developer/debug/test/gl/glsimplerendering.c index 43d7bc98f8..d571b60862 100644 --- a/developer/debug/test/gl/glsimplerendering.c +++ b/developer/debug/test/gl/glsimplerendering.c @@ -496,7 +496,7 @@ int main(void) if (currmicrosecs - fpsmicrosecs > 1000000) { /* FPS counting is naive! */ - sprintf(title, "GLSimpleRendering, FPS: %d", (int)framecnt); + sprintf(title, "GLSimpleRendering, FPS: %d", (int)((framecnt * 1000000)/(currmicrosecs - fpsmicrosecs))); fpsmicrosecs = currmicrosecs; framecnt = 0; -- 2.11.4.GIT