Graal Forums  

Go Back   Graal Forums > Development Forums > Tech Support
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 11-17-2009, 12:07 AM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
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?
Reply With Quote
  #2  
Old 11-17-2009, 01:03 AM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
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.
Reply With Quote
  #3  
Old 11-17-2009, 03:40 PM
Crow Crow is offline
ǝɔɐɹq ʎןɹnɔ
Crow's Avatar
Join Date: Dec 2006
Location: Germany
Posts: 5,153
Crow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond repute
Quote:
Originally Posted by Stefan View Post
When a graphic is drawn with a different size than the original size then it is made a 3D texture
Oh my god..
__________________
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 07:31 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.