Browse Source

Display PAL and NTSC on the debug status text, making it easier to distinguish what we're outputting when.

master
Nico de Poel 3 years ago
parent
commit
916d20a5db
  1. 2
      main.c

2
main.c

@ -56,7 +56,7 @@ int main(int argc, const char *argv[])
display_setClearColor(world.worldSpawn->skyColor);
u_short fps = time_getFrameRate();
FntPrint(-1, "Time: %d, frame: %d, delta time: %3d, fps: %d.%02d\n", (time_getRealTime() * 1000) >> 12, time_getFrameNumber(), time_getDeltaTime(), fps >> 8, ((fps & 0xFF) * 100) >> 8);
FntPrint(-1, "Time: %d, frame: %d, delta: %3d, fps: %d.%02d %s\n", (time_getRealTime() * 1000) >> 12, time_getFrameNumber(), time_getDeltaTime(), fps >> 8, ((fps & 0xFF) * 100) >> 8, GetVideoMode() ? "PAL" : "NTSC");
FntPrint(-1, "Camera pos: (%d, %d, %d) rot: (%d, %d, %d) leaf: %d\n", cam_pos.vx, cam_pos.vy, cam_pos.vz, cam_rot.vx, cam_rot.vy, cam_rot.vz, cam_leaf);
// Draw stuff

Loading…
Cancel
Save