@@ -161,9 +161,7 @@ int main(int argn, char **argv) {
window_drawComponents(window);
printText("Draw GUI: ", (time_getSeconds() - startTime) * 1000.0, " ms\n");
- startTime = time_getSeconds();
window_showCanvas(window);
- printText("Show canvas: ", (time_getSeconds() - startTime) * 1000.0, " ms\n");
}
@@ -413,9 +413,7 @@ void sandbox_main() {
font_printLine(colorBuffer, font_getDefault(), string_combine(U"max ms: ", 1000.0f * lastMaxFrameTime), writer, ColorRgbaI32(255, 255, 255, 255)); writer.y += 20;
- window_showCanvas(window);
- debugText("Show canvas: ", (time_getSeconds() - startTime) * 1000.0, " ms\n");
+ window_showCanvas(window);
double newTime = time_getSeconds();
secondsPerFrame = newTime - frameStartTime;
@@ -426,9 +426,7 @@ int main(int argn, char **argv) {
printText("Show buffers: ", (time_getSeconds() - startTime) * 1000.0, " ms\n");
- printText("Show canvas: ", (time_getSeconds() - startTime) * 1000.0, " ms\n\n");
printText("\nTerminating the application.\n");