ericmckean / lambnes

Automatically exported from code.google.com/p/lambnes
0 stars 0 forks source link

Sprite backgrounds are cached incorrectly #8

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
If a sprite appears on a black background first, it will have a black opaque 
background when it is used again on a different background color. This is 
probably a caching issue.
Steps to reproduce:
-Run Super Mario Bros.
-Start a new game
-Walk right until you see the first Goomba

(On an unrelated note: try analyzing this program with the sampler included 
with the JDK, jvisualvm.exe. The slow performance seems to be mostly due to how 
often the config file is checked. Is every method checking the logging level 
every time it is executed? That might work for business logic but an emulator 
can't afford to do that.)

Original issue reported on code.google.com by darkhelm...@gmail.com on 20 Mar 2012 at 9:22

GoogleCodeExporter commented 9 years ago
thanks -- I'll take a look at this for the next version. 

I'll also take a look at removing some of the logging. I only use it for 
debugging. Log4j is pretty fast, but it does slow down the emulator quite a bit.

Original comment by t...@lambelly.com on 22 Mar 2012 at 3:15

GoogleCodeExporter commented 9 years ago
I think both of these issues are resolved in 0.0.8. The emulator runs much 
faster and the issue with sprites was fixed.

Original comment by t...@lambelly.com on 3 Jul 2012 at 3:30