Bug: FrameWindow + DragContainer

If you found a bug in our library or on our website, please report it in this section. In this forum you can also make concrete suggestions or feature requests.

Moderators: CEGUI MVP, CEGUI Team

cyberjunk
Not too shy to talk
Not too shy to talk
Posts: 25
Joined: Fri Jan 17, 2014 02:39

Bug: FrameWindow + DragContainer

Postby cyberjunk » Mon Jul 04, 2016 01:42

Hey,

there is a bug report from 2014 about the issue here:
http://cegui.org.uk/mantis/view.php?id=1047

I have exactly the same problem with 0.8.5 :(
Is there any fix in a later version may be?

If my DragContainer is placed within a FrameWindow and if the FrameWindow has AutoRenderingSurface set to True (default), then the image in my DragContainer is flickering while it's dragged and moved around. It's visible as long as the mouse is moving, bit it disappears whenever the mouse stops.

The issue can be fixed by disabling AutoRenderingSurface, however this comes with quite some performance penalty for me...

It seems the FrameWindow gets updated as long as the mouse is moved (at least drops to the same FPS rate as when AutoRenderingSurface is disabled), but if the mouse is not moved, the FPS are recover to high but the dragged image isn't visible :-(

Thanks!

User avatar
Ident
CEGUI Team
Posts: 1836
Joined: Sat Oct 31, 2009 13:57
Location: Austria

Re: Bug: FrameWindow + DragContainer

Postby Ident » Mon Jul 04, 2016 15:22

Sorry but no, the issue is still open as you may find here: https://bitbucket.org/cegui/cegui/issue ... a-child-of

Upvoting and giving more info will help us resolve it. If you manage to fix it yourself then a PR would be super-awesome!
CrazyEddie: "I don't like GUIs"

cyberjunk
Not too shy to talk
Not too shy to talk
Posts: 25
Joined: Fri Jan 17, 2014 02:39

Re: Bug: FrameWindow + DragContainer

Postby cyberjunk » Mon Jul 04, 2016 15:25

Ok, I see. Thanks.
Sorry, I didn't find the new issue ticket...

Will try to help if possible.

User avatar
Ident
CEGUI Team
Posts: 1836
Joined: Sat Oct 31, 2009 13:57
Location: Austria

Re: Bug: FrameWindow + DragContainer

Postby Ident » Mon Jul 04, 2016 15:32

The numbers for the issues are retained so you can simply search for that
CrazyEddie: "I don't like GUIs"

cyberjunk
Not too shy to talk
Not too shy to talk
Posts: 25
Joined: Fri Jan 17, 2014 02:39

Re: Bug: FrameWindow + DragContainer

Postby cyberjunk » Wed Jul 06, 2016 01:34

I found a way to deal with this. Not a very clean one, but it works... :D

1) In my 'EventDragStarted' handler I call 'setUsingAutoRenderingSurface(false)' on the containing FrameWindow.
2) In my 'EventDragEnded' handler I then re-enable it by calling 'setUsingAutoRenderingSurface(true)'..

User avatar
Ident
CEGUI Team
Posts: 1836
Joined: Sat Oct 31, 2009 13:57
Location: Austria

Re: Bug: FrameWindow + DragContainer

Postby Ident » Wed Jul 06, 2016 09:46

Interesting approach. We could either take this over so it is done from within CEGUI automatically (not so elegant) or we, based on the knowledge that THIS works, take a closer look at why this problem occurs in the first place and then try to fix that ;)
CrazyEddie: "I don't like GUIs"

YaronCT
CEGUI Team
Posts: 439
Joined: Fri Jun 19, 2015 12:18
Location: Kiryat-Bialik, Israel

Re: Bug: FrameWindow + DragContainer

Postby YaronCT » Mon Jul 25, 2016 15:30

@cyberjunk: I'm unable to reproduce the problems, though I didn't check on real Windows, only inside vmware on linux. Can u plz upload somewhere a project where the problem exists?


Return to “Bug Reports, Suggestions, Feature Requests”

Who is online

Users browsing this forum: No registered users and 1 guest