Page 1 of 1

[no bug]Dragged window moves slowed than mouse cursor

Posted: Fri Jun 17, 2011 8:57 pm
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.

Posted: Fri Jun 17, 2011 9:31 pm
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).

Posted: Wed Jun 22, 2011 10:41 pm
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.