I can confirm the lag issue. Go to Elec man stage, and shoot a few times, and it lags. It also adds more just moving around. I'm using FCEUX 2.2.3, and you can use menu option "config>display>lag counter" to see exactly when it lags. Note that if you have it set on old ppu and overclocking you won't get any lag.
Thanks for pointing that out.
I went to Elec Man's stage to see for myself, and I compared my hack and the original game. It lags in the original game also, but it seems to lag slightly more so in my hack. The only thing I can think of is my ASM code. It seems to be the most obvious thing. It must be running too much code on each frame. And believe me, this hack is loaded with a bunch of added ASM code.
Do any of you remember when I first released the Upgrade Patch, and I said that the hack now had tons of free space because of the CHR-ROM conversion and PRG expansion?
Well, this ROM still has a lot of free space, but most of it is in the expanded PRG-ROM. I can't get over how much code that I had to add to make the hack what it currently is. In this hack, if you look, I had to add a lot of code to the SRAM addresses, because I ran out of room in the hardwired bank, and a lot of the freed-up space in the banks that I needed to use were mostly used up.
Even the CHR-ROM space is limited. There are only about twelve free 8K pages availabe to use. Which is certainly not what I intended there to be.
This was my first hack where I really did some big stuff with the ROM ASM-wise, from the CHR-ROM conversion to SRAM implementation, and all sorts of little things. So my code is obviously not going to be as efficient as it could be.
I'm half-tempted to redo this Remaster without the CHR-ROM conversion, for two reasons: A.)
The code will be cleaner, and the lag will no longer be present. B.)
The ROM will be show up okay in level editors. Seventy percent of the code that I added is because of the CHR-ROM conversion anyway, so all of that would be cut out. And I would still leave the mapper at MMC3 so that it may be played on most emulators and easily on real hardware.
Oh, by the way, I had no idea that there was a new version of FCEUX. When was 2.2.3 released? That's pretty cool. I'll have to update.