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.


Messages - Adinimys

Pages: [1]
1
Window / Re: Frame rate drop on mouse movement -> fix attemps
« on: September 07, 2015, 01:48:59 pm »
So, while I was testing following your guidelines I had issues recreating my frame drop. Then I realized that I was comparing the compiled SFML 2.3 to the pre-compiled package of ubuntu Trusty which is... 2.1.
I tested with the source code of the 2.1 and then the issue is back (but not in 2.2) so it's an issue that has already been solved...

Quote
As for the warning, that is what happens when events go unhandled. I think it should be obvious why you are seeing it after your modifications.

Yes sure, it's obvious ^^ I was just trying to know if there was other part of the system that are relaying on what happens in the code that prints the warning because I had trouble understanding it  ;D. But I guess that it's just a warning and I can ignore it if there is no other issue with inputs.

So in the end... I think I just found an already known bug  ::), nothing new there and I'll now go with building the 2.3 myself instead of using the 2.1 package of Ubuntu

2
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