Posts for MetalMachine

MetalMachine
He/Him
Joined: 5/22/2018
Posts: 2
Location: Phoenix, AZ, USA
Alright. I figured it was something about the implementation rather than the script itself, but wanted to make sure. Thanks for the suggestions! I'll see what I can do.
Post subject: lots of gui.drawBox calls seems to slow framerate
MetalMachine
He/Him
Joined: 5/22/2018
Posts: 2
Location: Phoenix, AZ, USA
Hello, I have recently written a lua script to visualize what is going on off-screen in NES Metroid. I've written it in such a way that it runs on both FCEUX and BizHawk. This script works great in FCEUX, but when I run it in BizHawk, it brings the framerate down to anywhere from 20 to 40 FPS. I'm assuming it's due to the large number of calls to gui.drawBox I am making (in the ballpark of 500 to 1000 per frame) however I'm quite surprised at the poor performance. Like I said, this exact same script works great on FCEUX (doesn't slow the performance). Am I doing something wrong? Here is a link to the script: https://www.dropbox.com/s/x8jdhu3rfctfa7g/metroid-vis-v3.lua Thanks for any help!