Forum

> > CS2D > Scripts > About images
Forums overviewCS2D overview Scripts overviewLog in to reply

English About images

2 replies
To the start Previous 1 Next To the start

old About images

The Gajos
BANNED Off Offline

Quote
I wanna know why using imagealpha() less lags than using image() and freeimage().

old Re: About images

VADemon
User Off Offline

Quote
The most basic explanation would be that imagealpha() changes the way the image is drawn and the other both functions unload and load the image (probably reading it again from disk) which cannot be faster than changing an image value that is applied in the next frame drawn by the GPU.
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview