Stupid question

Previous topic - Next topic

Kuron

When using only the 2D commands in GLBasic do the sprites need to be sized in the power of 2?

Kitty Hello

GLBasic handles that internally for you. It's a wise idea though wherever applicable.

Schranz0r

Quote from: Kitty Hello on 2008-Aug-30
GLBasic handles that internally for you. It's a wise idea though wherever applicable.

wow, thats nice!
I <3 DGArray's :D

PC:
AMD Ryzen 7 3800X 16@4.5GHz, 16GB Corsair Vengeance LPX DDR4-3200 RAM, ASUS Dual GeForce RTX™ 3060 OC Edition 12GB GDDR6, Windows 11 Pro 64Bit, MSi Tomahawk B350 Mainboard

Kuron

Thank you guys.

That is probably the one thing I do not like about the 2D emulation we have to use nowadays.  In order to make sprites that are sized in powers of 2, you either have very blocky shaped sprites, or you have to pad areas around the sprites with the "transparent" color to even it out.  This has a performance hit since you will often have to use pixel-perfect collision on sprites that normally you could have used boxed-collision on if you didn't have to pad them out to work with the limitations of "modern" hardware.  This is one of the main reasons why I still use GDI for as many 2D games as possible.