[no bug]Dragged window moves slowed than mouse cursor

You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
Post Reply
Reiko
Posts: 105
Joined: Sun Aug 16, 2009 7:06 am
Location: Australia

[no bug]Dragged window moves slowed than mouse cursor

Post by Reiko »

When you drag a window around the screen, the window itself moves slower than the mouse cursor. I'm not sure if this is a problem with CGUIWindow itself, or a problem with event.MouseInput (not sure what thats called), or if it's just a 'feature' that can't really be helped at all. But I can't really seem to recall any games or so on that had this behaviour.

I tried with vsync on and off. On (60 fps) it was about twice as worse than off (330 fps). Even with vsync off the window would lag behind by almost 1cm on my monitor (23 inch @ 1920x1080).

It's not like it's catching up with the current mouse position at all either. It's like lagging behind until I stop moving the mouse.

It's not really an urgent issue, it just looks a little tacky.
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Post by CuteAlien »

Windows should update with the framerate. Are you sure you really call drawAll for the gui with 60 fps? If so I think I need a small example to reproduce this. I just tested it with a few windows, but it just had the usual 1-frame delay (but you have that in all windows).
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Reiko
Posts: 105
Joined: Sun Aug 16, 2009 7:06 am
Location: Australia

Post by Reiko »

Sorry I guess my eyes are going bad. I tried this again today, also tried recording a video, and it seemed to be no bug.
Post Reply