View Single Post
Old 04 March 2018, 03:04   #4
Registered User
Join Date: Sep 2007
Location: Stockholm
Posts: 3,710
As Daedalus managed to write while I was still reading the sources, profile your code by poking a different colour to $dff180 at the beginning of each subroutine.

You can possibly save a few cycles by making some extremely similar if…endif blocks into a Select…case clause. In other spots, you first check if this > that, then immediately afterwards check if this <= that. Replace the second check with an else instead.

Unrelated to optimisation, you can shorten your code by not calling Getashape tens of times at the beginning of the program. Move that code to another program and save the grabbed shapes to a file which you load or include in your main program.
idrougge is offline  
Page generated in 0.04112 seconds with 11 queries