Gamestudio Links
Zorro Links
Newest Posts
How to select between IB accounts by script?
by AndrewAMD. 06/13/26 15:44
Zorro tutorial ideas?
by AndrewAMD. 06/13/26 15:01
Zorro 3.01 recoded MMI function issue
by 11honza11. 06/13/26 11:40
Stooq now requires an API key
by AndrewAMD. 06/11/26 17:55
Z9 getting Error 058
by k_ivan. 06/10/26 14:38
ZorroGPT
by TipmyPip. 06/10/26 13:07
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
2 registered members (Quad, 1 invisible), 1,203 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Student_64151, Koti, curry, DeepxKalsi, Samed
19219 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Reducing Panel Rendering Time #359384
02/17/11 08:02
02/17/11 08:02
Joined: Jun 2006
Posts: 2,640
Earth
Germanunkol Offline OP
Expert
Germanunkol  Offline OP
Expert

Joined: Jun 2006
Posts: 2,640
Earth
Hi,

I've noticed that the panel rendering time in my game is pretty high. We have lots of transparency, but we can't change that.

Is there any way to reduce rendering time that you know of? Anything you've tried? Like making it all one panel and the changing elements are buttons... or splitting it into lots of panels and reducing large transparent areas...

Thanks...


~"I never let school interfere with my education"~
-Mark Twain
Re: Reducing Panel Rendering Time [Re: Germanunkol] #359385
02/17/11 08:36
02/17/11 08:36
Joined: Feb 2009
Posts: 2,154
Damocles_ Offline
Expert
Damocles_  Offline
Expert

Joined: Feb 2009
Posts: 2,154
can you try to use some 1-bit transparency.
Like an indexed png with a 1bit alpha channel.

I think the most time is used for calculating the smooth transparent overlay.

Re: Reducing Panel Rendering Time [Re: Damocles_] #359428
02/17/11 17:33
02/17/11 17:33
Joined: Jun 2006
Posts: 2,640
Earth
Germanunkol Offline OP
Expert
Germanunkol  Offline OP
Expert

Joined: Jun 2006
Posts: 2,640
Earth
Hm. I don't think 1 bit does the job for us. We have some smooth alpha transitions even on the elements themselves. 1-bit would just be 0 or 1, "transparent" or "not transparent", right?
I tried reducing the alpha map, it doesn't look all that great...

Edit:
I'll have to rephrase my question. I just noticed something weird:

Why does acknex require 0.8 ms (see top left) for panel rendering when there isn't a single panel visible?



Last edited by Germanunkol; 02/17/11 19:24.

~"I never let school interfere with my education"~
-Mark Twain
Re: Reducing Panel Rendering Time [Re: Germanunkol] #359483
02/17/11 22:03
02/17/11 22:03
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
I think it takes 0.8ms because of the draw_XXX calls that you are probably using for the (true type) text and the debug panel itself.


"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends
Re: Reducing Panel Rendering Time [Re: Superku] #359500
02/18/11 01:07
02/18/11 01:07
Joined: Aug 2007
Posts: 1,922
Schweiz
Widi Offline
Serious User
Widi  Offline
Serious User

Joined: Aug 2007
Posts: 1,922
Schweiz
Yes, Superku is right. The digits from the debug panel need "a lot" of time...
I need also panels for a 2D game, the fps is okay with more then 700 panels. But if i use digits on every Panel, then the fps goes really down.

Re: Reducing Panel Rendering Time [Re: Widi] #359536
02/18/11 12:28
02/18/11 12:28
Joined: Jun 2006
Posts: 2,640
Earth
Germanunkol Offline OP
Expert
Germanunkol  Offline OP
Expert

Joined: Jun 2006
Posts: 2,640
Earth
Hm okay, thanks...

Weird though that the fps doesn't go down much when I disable/enable the F11 panel...


~"I never let school interfere with my education"~
-Mark Twain
Re: Reducing Panel Rendering Time [Re: Germanunkol] #359542
02/18/11 13:37
02/18/11 13:37
Joined: Feb 2009
Posts: 2,154
Damocles_ Offline
Expert
Damocles_  Offline
Expert

Joined: Feb 2009
Posts: 2,154
I think you should better test that in an empty testproject,
just rendering the GUI.

To eliminte other possible variables that affect rendering time.


Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1