chore: tempoarily disable fps counter

This commit is contained in:
Rekai Nyangadzayi Musuka 2022-01-30 02:42:01 -04:00
parent 8c248ffb11
commit e35d81eeb8
1 changed files with 5 additions and 5 deletions

View File

@ -88,8 +88,8 @@ pub fn main() anyerror!void {
defer SDL.SDL_DestroyTexture(texture); defer SDL.SDL_DestroyTexture(texture);
// Init FPS Timer // Init FPS Timer
var timer = Timer.start() catch unreachable; // var timer = Timer.start() catch unreachable;
var title_buf: [0x30]u8 = [_]u8{0x00} ** 0x30; // var title_buf: [0x30]u8 = [_]u8{0x00} ** 0x30;
emu_loop: while (true) { emu_loop: while (true) {
var event: SDL.SDL_Event = undefined; var event: SDL.SDL_Event = undefined;
@ -107,9 +107,9 @@ pub fn main() anyerror!void {
_ = SDL.SDL_RenderCopy(renderer, texture, null, null); _ = SDL.SDL_RenderCopy(renderer, texture, null, null);
SDL.SDL_RenderPresent(renderer); SDL.SDL_RenderPresent(renderer);
const fps = std.time.ns_per_s / timer.lap(); // const fps = std.time.ns_per_s / timer.lap();
const title = std.fmt.bufPrint(&title_buf, "ZBA FPS: {d}", .{fps}) catch unreachable; // const title = std.fmt.bufPrint(&title_buf, "ZBA FPS: {d}", .{fps}) catch unreachable;
SDL.SDL_SetWindowTitle(window, title.ptr); // SDL.SDL_SetWindowTitle(window, title.ptr);
} }
quit.store(true, .Unordered); // Terminate Emulator Thread quit.store(true, .Unordered); // Terminate Emulator Thread