cundo
Full Member
Muchas Gracias!!
Posts: 146
|
Post by cundo on Jun 13, 2020 12:33:05 GMT -5
I have noted that there is a very small delay when using the sprite engine. Is like a little hiccup, then they work fine. Resizing the Background on the other hand, seems to be affected more by this delay.
|
|
|
Post by Carl Gundel on Jun 13, 2020 13:08:43 GMT -5
If we were able to drawimage() specifying a transparent background color that might eliminate the mask and allow more to be drawn. Not a sprite replacement but might be faster and use less memory for graphic hungry code. Instead of holding hundreds of sprites we simply keep drawing the same image. So much less memory use. Because of the cross platform graphics model, using a transparent color is not really practical. Maybe some specialization of the graphics can be created later, but for now I need to focus on completing LB5 with as much OS level compatibility as I can. For the same reason, the use of the XOR drawing rule going forward is also in question, at least in a cross platform way. Part of this is the automatic alpha blending of graphics on the Mac, and this causes the XOR to behave strangely. We'll see.
|
|
|
Post by Gordon Rahman on Jun 13, 2020 13:57:10 GMT -5
If we were able to drawimage() specifying a transparent background color that might eliminate the mask and allow more to be drawn. Not a sprite replacement but might be faster and use less memory for graphic hungry code. Instead of holding hundreds of sprites we simply keep drawing the same image. So much less memory use. and in this case, maybe using a 4 bit picture?
|
|