summaryrefslogtreecommitdiffhomepage
path: root/src/text.c
diff options
context:
space:
mode:
authorraysan5 <[email protected]>2019-12-04 17:59:17 +0100
committerraysan5 <[email protected]>2019-12-04 17:59:17 +0100
commit08adb4b8c3085641a7e316f1489a4111dbc9d5c0 (patch)
tree54e56296caca00929a432614df0909cf6268aac3 /src/text.c
parent3d936061c8a39e4918399a805aac6b33ed97310a (diff)
downloadraylib-08adb4b8c3085641a7e316f1489a4111dbc9d5c0.tar.gz
raylib-08adb4b8c3085641a7e316f1489a4111dbc9d5c0.zip
Check and testing timming #865
Diffstat (limited to 'src/text.c')
-rw-r--r--src/text.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/text.c b/src/text.c
index 3a939ba6..0ebec3c2 100644
--- a/src/text.c
+++ b/src/text.c
@@ -759,7 +759,7 @@ void UnloadFont(Font font)
// NOTE: Uses default font
void DrawFPS(int posX, int posY)
{
- // NOTE: We are rendering fps every second for better viewing on high framerates
+ // NOTE: We are rendering fps every certain time for better viewing on high framerates
static int fps = 0;
static int counter = 0;
@@ -773,6 +773,8 @@ void DrawFPS(int posX, int posY)
counter = 0;
}
+ // TODO: Find a better way to calculate FPS, maybe calculate the mean of multiple measures?
+
// NOTE: We have rounding errors every frame, so it oscillates a lot
DrawText(TextFormat("%2i FPS", fps), posX, posY, 20, LIME);
}