Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - Adinimys

Pages: [1]
1
Window / Frame rate drop on mouse movement -> fix attemps
« on: September 07, 2015, 12:10:05 am »
I first posted on Tig Source for advices, describing my issue : http://forums.tigsource.com/index.php?topic=50222.0

So it's the same problem as described in :
http://en.sfml-dev.org/forums/index.php?topic=4378.0
http://en.sfml-dev.org/forums/index.php?topic=6079.0

So I tried a quick hack (for linux only for now) by removing the handling of the joystick and what I believe is for touchscreen (SensorEvent) . I commented line 118-119 and 131-132 in WindowImpl.cpp.
Then as I was getting the position of the mouse each frame I removed the handling of mouse movement in the events by commenting lines 2187 to 2199 in WindowImplX11.cpp

Now when I run my game that previously add slowdown to 1fps (it's running on a 1GHz CPU) when the mouse moved I'm getting a steady 850+fps.
The only issue is that I have in std::out a long list (I'll copy-paste it if needed) and it warns about "Unhandled event type: 6"
And it tells "Report this to the SFML maintainers if possible"

When I'll have time I'll test the respective impact of my three removals (joystick, sensor and mouse movement) to see what happens.

What do you think of this solution ? And what about the error messages, can I safely ignore them ?

Pages: [1]
anything