Oxygen Basic

Programming => Example Code => Topic started by: Peter on May 12, 2012, 11:47:18 AM

Title: TgaSpriteTest
Post by: Peter on May 12, 2012, 11:47:18 AM
Deleted
Title: Re: TgaSpriteTest
Post by: Charles Pegge on May 12, 2012, 12:42:53 PM

Yes it displays 10 x 7.5 dogs and a white OKAY
Title: Re: TgaSpriteTest
Post by: Aurel on May 12, 2012, 01:23:44 PM
Hi Peter it looks that work fine ;)
Title: Re: TgaSpriteTest
Post by: Charles Pegge on May 12, 2012, 10:52:21 PM
I found that it did not terminate every time. There were instances left visible in file manager, each using a full CPU core.

Charles
Title: Re: TgaSpriteTest
Post by: Charles Pegge on May 13, 2012, 08:13:13 AM

I think it's because the pixel read/writes are all done indidually between motherboard memory and graphics hardware memory, at the OS level. Block transfers are much more efficient, and of course, operations which only involve the graphics hardware.

Opengl compiled lists are most efficient of all, and ideal for objects that do not change their shape, or texture mapping. (you can still stretch them).

Charles