Performance issue with scrollable pane

Forum for general chit-chat or off-topic discussion.

Moderators: CEGUI MVP, CEGUI Team

jackbenoit
Just popping in
Just popping in
Posts: 4
Joined: Tue Jun 20, 2006 15:00

Performance issue with scrollable pane

Postby jackbenoit » Wed Jul 05, 2006 10:29

Hi,
I have a frame window that contains some scrollable panes. The problem is that the more widgets are present in the scrollable panes, the more the framerate drops down.
Is this possible that the scrollable pane actually performs the render of all its children and finally displays the ones in the visible area only ?
Or does CEGUI calculates all the widgets' coordinates although the majority of them is not visible at all ?
Thanks in advance.
Cheers.

angela4et
Just popping in
Just popping in
Posts: 7
Joined: Mon Jul 03, 2006 06:36
Contact:

i also having problems with scrollable pane

Postby angela4et » Fri Jul 07, 2006 08:48

i have dragcontainer inside my scrollablepane, if i set the scrollablepane to autoresize == true then dragcontainers's setposition all screwed.
and when autoresize == true , both horzontal and vertical srcollbar will appear then i setshowhorzontalbar to false but it doesn't work..

and for the setContentPaneArea , i am sooo confused ... inside the
CEGUI::Rect(CEGUI::Point(x,y), CEGUI::Size(width,height));

x, y ,width, height should all be float ---that means relative value i guess

but, for x, y if i put raletive value eg. 0.1 , 0.2 then i got wrong positioning
just like point(0.0, 0.0 ) , so i tried absolute but still float value 15.0, and 30.0 and it works!!! but it seems the direction is wrong, so i change to -15.0, and -30.0 and it works just fine!!


here is some of my code:

// ScrollablePane

CEGUI::WindowManager::getSingleton().getWindow("Root_Game/Frame_Inventory")->addChildWindow( singlePage);
singlePage ->setWindowArea( CEGUI::UVector2( CEGUI::UDim(0.01f, 9 ), CEGUI::UDim(0.01f, 16))
, CEGUI::UVector2( CEGUI::UDim(0.95f, -5 ), CEGUI::UDim(0.75f, -5)));

singlePage ->setContentPaneAutoSized(false);

singlePage ->setContentPaneArea( CEGUI::Rect(CEGUI::Point(-15.0, -30.0), CEGUI::Size(0.50,0.50)));


singlePage ->setShowHorzScrollbar(false);
//singlePage ->activate();
singlePage ->setEnabled(true);



i am here puking blood..............................................................


Return to “Offtopic Discussion”

Who is online

Users browsing this forum: No registered users and 9 guests