[hatari-devel] Hatari patches for bitplane conversion

Kåre Andersen kareandersen at gmail.com
Wed Jul 22 16:43:14 CEST 2009


Further investigations...

> On 7/22/09, Kåre Andersen <kareandersen at gmail.com> wrote:

> nFrameSkips is somehow never initialised, add a =0 and everything is
> fine...  How can this be different on different platforms?

So, remembering previous thoughts on the subject, and the sound init
problems on OS X a while back, I looked up how the ELF and Mach-O
binary executable formats work.

ELF zeroes out BSS, Mach-O has, as far as I can tell, no such requirement.

Please don't rely on uninitialized values...

It can happen to anyone, and I cant get gcc to warn me about these
(globals) with -Wuninitialized. Still, I am sure it can be avoided in
the future... :)

On another note, i have put memcmp() per line into my converter, and
indeed it does help a bit. Next up is changing the blitted rectangle
to changed areas only. The compares eat a bit of CPU on their own, but
the stress on the X server is much reduced in "good" cases, so I will
keep improving on this code. Trying to come up  with some good
heuristics as to when to blit, when to compare and so on. Nice and
fuzzy suggestions are very welcome.. :)

/Kåre



More information about the hatari-devel mailing list