Re: Double buffer grey scale?
Posted: Wed May 31, 2017 5:35 pm
Gray effect aside, I would love to see how you are double buffering for smoother animation. Please share an example.
Thank you.
KB
Thank you.
KB
Discussion forums for users of the Sinclair 8-bit range of computers - ZX80, ZX81, ZX Spectrum, Z88, clones...
https://sinclairzxworld.com/
Code: Select all
ld bc,bufferOne ;set the current screen to buffer one
ld (D_FILE),bc ;set D_File to the location of buffer one
inc bc ;increment bc by 1
ld (DF_CC),bc ;set DF_CC to address of bugffer one plus 1
Hells teeth I remember this little bugger, what ever you do don't stare to long at it after half a bottle of scotch like I did.Andy Rea wrote: ↑Thu Sep 07, 2017 7:38 pm excuse me for jumping in and ( kinda ) hi-jacking the thread... a while ago i wrote a little animation that used page flipping 8 pages if i remeber correctly by chaging page each frame it creates a very nice illusion of fluid movement, iirc it is much better viewed on a real CRT display due to the persistence of vision effect.
i believe the source code is in this zip here to
link to post viewtopic.php?f=6&t=609&p=5321&hilit=moreball#p5321
regards Andy