Re: [cc65] Optimizing C code

Date view Thread view Subject view

From: Shawn Jefferson (sjefferson_at_sd62.bc.ca)
Date: 2003-09-09 17:34:23


>>> Groepaz <groepaz_at_gmx.net> 09/09/03 05:30AM >>>
>On Tuesday 09 September 2003 01:05, Shawn Jefferson wrote:
>
>> I realized that the test was actually running for 2 seconds, not 2 minutes.
>>  That was 345 plots per second.  Does that sound better?
>
>from a democoders point of view.... at about 768 plots per *frame* (3840 plots 
>per second) it starts getting impressive :=P

In my defense, this function has to support arbitrary sizes of bitmaps, where in a demo you probably know how big your screen is going to be so you can optimize for that... there is also the fact that demo coders actually have some skills. ;)

I figure I could further optimize by rewriting in assembly, and passing the arguments via some global zero page variables (this would speed up pretty much all functions), and maybe some more that I haven't thought of yet.  This was never meant to be used for coding games or demos, so at some point I am going to say, "good enough."

¯
Shawn Jefferson


----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo_at_musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.


Date view Thread view Subject view

This archive was generated by hypermail 2.1.3 : 2003-09-09 17:37:07 CEST