Welcome, Guest. Please login or register.

Login with username, password and session length

 
Advanced search

11855 Posts in 1569 Topics- by 3054 Members - Latest Member: Ljustin770

11. February 2012, 12:23:42 PM
Xith3D CommunityXith3D InternalsDeveloper discussion (Moderators: Marvin Fröhlich, 'n ddrylliog)Clipper
Pages: [1]
Print
Author Topic: Clipper  (Read 1192 times)
Marvin Fröhlich
Xith Lord
Administrator
Guru
*****
Offline Offline

Posts: 4337


May the 4th, be with you...


View Profile
« on: 14. January 2008, 10:52:28 PM »

I have noticed, that disabling the Clipper gives a little performance boost for the whole RenderPass, for which it is disabled.

I would like to disable it by default, so that you need to manually enable it, if you want to use it.

Is this a problem for anybody. Well, I guess, no. But see this as a warning, that it might be necessary to enable it in the future Wink.

Marvin
Logged
horati
Global Moderator
Getting respectable
*****
Offline Offline

Posts: 393


View Profile
« Reply #1 on: 13. December 2009, 02:55:50 AM »

You made reference to this post from the performance thread.  This message is more specific so I will post here.

Another tweak, that I have enabled manually just for the Q3 test is, that I have disabled the user-defined clipping planes for the main RenderPass. Handling the Clipper or ScissorRects is expensive for the whole RenderPass with the current implementation. So, if you don't need it, disable it through:
Code:
renderPass.setClipperEnabled( false );

I do not think anyone responded because we didn't understand exactly what you meant.  Is this still relevant?  Do we need to do something?  Could you elaborate as to exactly what is missing with false?  I cannot understand how we could use a scene graph API without some form of clipping.  Presumably, you do not mean this disables all clipping.
Logged

Kevin
"It may not seem like a big deal, but ignorance of character encoding issues leads to insidious code rot akin to y2k."
http://stackoverflow.com/users/3474/sylvarking
Marvin Fröhlich
Xith Lord
Administrator
Guru
*****
Offline Offline

Posts: 4337


May the 4th, be with you...


View Profile
« Reply #2 on: 13. December 2009, 03:03:44 AM »

No. this just disables user defined clipping. You can attach scissor rects (2D) and user defined clip planes (3D) to groups. But they are ignored as long as you don't enable clipping for the render pass. Of course regular frustum culling keeps being enabled as long as you don't explicitly disable it.

Marvin
Logged
horati
Global Moderator
Getting respectable
*****
Offline Offline

Posts: 393


View Profile
« Reply #3 on: 13. December 2009, 03:12:16 AM »

Since I would rarely add my own clipping beyond setting the field of view through the regular API, should I expect a performance boost if I add the code you quoted?
Logged

Kevin
"It may not seem like a big deal, but ignorance of character encoding issues leads to insidious code rot akin to y2k."
http://stackoverflow.com/users/3474/sylvarking
Marvin Fröhlich
Xith Lord
Administrator
Guru
*****
Offline Offline

Posts: 4337


May the 4th, be with you...


View Profile
« Reply #4 on: 13. December 2009, 04:37:15 AM »

tbh I don't remember, if this means a big performance boost. But it should at least do a little one. Just try it out Wink.

Marvin
Logged
Pages: [1]
Print
Jump to:  

Theme orange-lt created by panic