vg_opengl_sync_init();
vg_loader_start();
+ vg.accumulator = 0.75f * (1.0f/60.0f);
+
int loaded = 0;
while(1)
{
(ui_rect){ 4, 4, 250, 0 }, 0
);
+ if( vg_profiler )
+ {
+
+ char perf[128];
+
+ snprintf( perf, 127,
+ "x: %d y: %d\n"
+ "refresh: %.1f (%.1fms)\n"
+ "samples: %d\n"
+ "iterations: %d (acc: %.3fms%%)\n",
+ vg.window_x, vg.window_y,
+ vg.refresh_rate, (1.0f/vg.refresh_rate)*1000.0f,
+ vg.samples,
+ vg.fixed_iterations,
+ (vg.accumulator/VG_TIMESTEP_FIXED)*100.0f );
+
+ ui_text( &ui_global_ctx, (ui_rect){258, 4+24+12,0,0},perf, 1,0);
+ }
+
audio_debug_ui( vg.pv );
vg_ui();
vg_console_draw();
if( glfwWindowShouldClose( vg.window ) )
break;
+ if( glfwGetKey( vg.window, GLFW_KEY_ESCAPE ) )
+ break;
+
glfwPollEvents();
glBindFramebuffer( GL_FRAMEBUFFER, 0 );