Emu48 Javascript ?
|
02-04-2018, 08:07 PM
(This post was last modified: 02-04-2018 08:10 PM by sunhp.)
Post: #41
|
|||
|
|||
RE: Emu48 Javascript ?
(02-04-2018 03:33 PM)Eric Rechlin Wrote: Very impressive. I'm surprised to see performance is at par with the actual calculator, even on my several-year-old computer! Thank you Eric I appreciate this ! I put sources on Github to pass the torch and I really think it should be very easy to build better versions , btw my main loop is so horrible : while( 1 ) { #if emscripten currentTime_emu = currentTime; do { emulator_run(); currentTime_emu = SDL_GetTicks() - currentTime; } while (currentTime_emu < 2); #else emulator_run(); #endif if (currentTime > lastTime_timer2 + delay_timer2) { lastTime_timer2 = currentTime; true_speed_proc(); } if (currentTime > lastTime_timer1 + delay_timer1) { lastTime_timer1 = currentTime; display_update(); } if (currentTime > lastTime_timer3 + delay_timer3) { lastTime_timer3 = currentTime; timer1_update(); } if (currentTime > lastTime_timer5 + delay_timer5) { lastTime_timer5 = currentTime; display_show(); } } |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)