0 Alpha Problem

For help with anything that CEGUI doesn't offer straight out-of-the-box, e.g.:
- Implementation of new features, such as new Core classes, widgets, WindowRenderers, etc. ...
- Modification of any existing features for specific purposes
- Integration of CEGUI in new engines or frameworks and writing of new plugins (Renderer, Parser, ...) or modules

Moderators: CEGUI MVP, CEGUI Team

User avatar
JNighthawk
Just popping in
Just popping in
Posts: 7
Joined: Sun Apr 17, 2005 04:55

0 Alpha Problem

Postby JNighthawk » Wed Apr 20, 2005 12:06

CEGUI does not currently recognize that a window has 0 alpha and still attempts to render it. I just tested this, so I'm sure of it. I created 50 buttons and when I set the visiblity to false, there was a significant FPS increase. When I set the alpha to 0, there was no change in FPS, so it still attempted to output 0 alpha windows.

I would like 0 alpha windows for invisible windows that still accept input and events.

User avatar
daesdemon
Quite a regular
Quite a regular
Posts: 60
Joined: Fri Mar 11, 2005 21:19
Contact:

Re: 0 Alpha Problem

Postby daesdemon » Wed Apr 20, 2005 12:23

I guess you cannot expect having a window acting like a not transparent one but without the fps drop of a normal window.

Even if the transparents windows were not drawed (i think it is not the case) , you surely get fps drop by events management system.

User avatar
JNighthawk
Just popping in
Just popping in
Posts: 7
Joined: Sun Apr 17, 2005 04:55

Re: 0 Alpha Problem

Postby JNighthawk » Wed Apr 20, 2005 19:03

Wrong.

Re-read about my test.

User avatar
gcarlton
Just can't stay away
Just can't stay away
Posts: 149
Joined: Wed Jan 12, 2005 12:06

Re: 0 Alpha Problem

Postby gcarlton » Thu Apr 21, 2005 05:37

It shouldn't be too hard to add an extra (alpha==0) check in the window render function, so if you need this you should probably just go ahead and do it.

User avatar
daesdemon
Quite a regular
Quite a regular
Posts: 60
Joined: Fri Mar 11, 2005 21:19
Contact:

Re: 0 Alpha Problem

Postby daesdemon » Thu Apr 21, 2005 16:10

So if i am wrong , use your hidden window which don't drop your FPS and use it ;).

Hidden window is NOT transparent window, it is not rendered window and i am pretty sure it don't catch the input event (or it sends them back to parent) so less FPS Drop.
So perhaps it is rendered , perhaps it is not, but you will however have FPS drop if you want input Events.

Try GuiSheet Window and subscribe the event you want on it as it is a transparent window ( but without alpha, so it is probably not rendered )

User avatar
JNighthawk
Just popping in
Just popping in
Posts: 7
Joined: Sun Apr 17, 2005 04:55

Re: 0 Alpha Problem

Postby JNighthawk » Thu Apr 21, 2005 21:03

Daes-

You aren't understanding what I'm saying.

Carlton-

I plan to, but it should be updated in the official version, also.

User avatar
daesdemon
Quite a regular
Quite a regular
Posts: 60
Joined: Fri Mar 11, 2005 21:19
Contact:

Re: 0 Alpha Problem

Postby daesdemon » Fri Apr 22, 2005 12:00

Since you consider my talk are out of topic, i made some test for myself.

I have a quite complex window and disable it or enable it for it to catch or not catch input events, and i found that i get no massive change of fps, so i am probably out of topic, sorry. :oops::hammer:

2FPS for event management
8FPS for rendering


Return to “Modifications / Integrations / Customisations”

Who is online

Users browsing this forum: No registered users and 3 guests