Page 1 of 1

Rewind buffer >1.5GB crashes 32bit

Posted: Sat Jan 31, 2015 4:02 pm
by DaMan
Large address aware does nothing. Thought it would otherwise I wouldn't have set it that high.

Re: Rewind buffer >1.5GB crashes 32bit

Posted: Sun Feb 01, 2015 12:41 am
by OV2
The rewind buffer is always a power of 2. Setting > 1500GB will cause snes9x to try to allocate a 2GB buffer. Since you will not have a continuous free 2GB range in the processes virtual address space this will fail.

Re: Rewind buffer >1.5GB crashes 32bit

Posted: Sun Feb 01, 2015 3:52 pm
by DaMan
I see. Fixing it was easier than I expected. Here's a patch if you want and is up to your standards. VirutalBox not working for me ATM so not sure if a 32bit OS can handle 1.5GB. I'll try later if you don't think "1GB ought to be enough for anybody".