![]() |
Panel rendering performance with Stretchctrl
I've been recently messing around with DrawingPanels and I'm a bit curious.
If I render a 800x600 canvas Panel(one the size of the player's Graal window, for example), and in a timeout clear it repeatedly and draw an image, it lags. That's understandable, it's a fairly large canvas and a lot of canvas to constantly fill. However, if I render a 320x240 canvas and do the same thing, the lag is decreased significantly... almost none at all for my shoddy computer. That's great! It makes sense too, it's much less canvas to render and fill. However, why if I use a guistretchctrl to stretch the 320x240 canvas over the screen, it lags just as bad as the first scenerio? At first I thought maybe it was my graphics card not being able to render transparency well, but I remember that seteffect does the same thing, and even with the whole screen being filled black(no transparency at all), it still lags. Is this a bug, an oversight or something or just the way it's going to work? |
When a graphic is drawn with a different size than the original size then it is made a 3D texture and is usually taking more video memory and updating the texture takes more time. In v6 this should be much faster, usually updating a full screen texture should not take a lot of time on a PC.
|
Quote:
|
| All times are GMT +2. The time now is 05:56 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.