summaryrefslogtreecommitdiff
path: root/mknes.c
diff options
context:
space:
mode:
authorPeter Fors <peter.fors@mindkiller.com>2025-04-08 13:42:13 +0200
committerPeter Fors <peter.fors@mindkiller.com>2025-04-08 13:42:13 +0200
commitc9bd7fecdb5d6c8954cf31efef910ed734386c70 (patch)
treeab59d3ca3e256ee7a431d82a6412e9c323f418ed /mknes.c
parent205dc47111125aa2f7458be948cd9cd434d0344c (diff)
2690fps
Diffstat (limited to 'mknes.c')
-rw-r--r--mknes.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/mknes.c b/mknes.c
index ea735f6..09da608 100644
--- a/mknes.c
+++ b/mknes.c
@@ -173,7 +173,7 @@ int main(int argc, char **argv) {
// ines2_load(nstate, "data/0003/Flipull - An Exciting Cube Game (Japan) (En).zip");
// ines2_load(nstate, "data/0003/Friday the 13th (USA).zip");
// ines2_load(nstate, "data/0003/Ghostbusters (Japan).zip");
-
+ // ines2_load(nstate, "data/0003/Gradius (USA).zip");
// ines2_load(nstate, "data/0007/Battletoads (USA).zip");
// ines2_load(nstate, "data/0007/Beetlejuice (USA).zip");
// ines2_load(nstate, "data/0007/Cabal (USA).zip");
@@ -226,7 +226,7 @@ int main(int argc, char **argv) {
}
}
- set_decay(10);
+ set_decay(20);
timer_start(timer);
@@ -241,7 +241,7 @@ int main(int argc, char **argv) {
}
#else
while(!glfwWindowShouldClose(window)) {
- timer_wait(timer);
+ // timer_wait(timer);
glfwPollEvents();
while(!nstate->ppu.frame_ready) {
@@ -251,7 +251,7 @@ int main(int argc, char **argv) {
nstate->ppu.frame_ready = 0;
frames++;
- uint32_t * restrict dst = buffer;
+ uint32_t * restrict dst = display_buffer; //buffer;
uint8_t * restrict src = nstate->pixels;
for(uint32_t y = 0; y < 240; ++y) {
for(uint32_t x = 0; x < 256; ++x) {
@@ -261,7 +261,7 @@ int main(int argc, char **argv) {
}
dst += BUFFER_WIDTH;
}
- apply_phosphor_decay();
+ // apply_phosphor_decay();
render_frame();
glfwSwapBuffers(window);
}