Quote:
Originally Posted by earok
Code:
wrappedCameraY = CameraY mod #BufferHeight
DisplayBitMap #CopList_Main,FrontBuffer,CameraX,wrappedCameraY
splitline = #BufferHeight - wrappedCameraY
CopperReset #CopList_Main, 0
|
Is #BufferHeight a power of 2? If so you can replace the mod with a bitwise and. I think mod is one of the slowest arithmetic instructions on the 68000 as there's no hardware division unit.
Spiral scroll I will never understand though.