|
|
@ -47,7 +47,8 @@ int main(int argc, const char *argv[]) |
|
|
|
|
|
|
|
|
display_start(); |
|
|
display_start(); |
|
|
|
|
|
|
|
|
FntPrint(-1, "Time: %d, frame: %d, delta time: %3d, fps: %d\n", (time_getRealTime() * 1000) >> 12, time_getFrameNumber(), time_getDeltaTime(), (time_getFrameRate() + 128) >> 8); |
|
|
|
|
|
|
|
|
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, "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); |
|
|
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 |
|
|
// Draw stuff |
|
|
|