View Single Post
Old 27 December 2018, 15:27   #4
E-Penguin
Banana
 
E-Penguin's Avatar
 
Join Date: Jul 2016
Location: Darmstadt
Posts: 1,214
Quote:
Originally Posted by earok View Post
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.
E-Penguin is offline  
 
Page generated in 0.04215 seconds with 11 queries