Hi everyone !
I'm new to love2D, and would really appreciate it if someone can help me with this question.
I am attaching a test_game that I have started learning with. I can't work out how to get the white square to move smoothly !
I started learning love2D a few months ago, then my computer died, so now I'm starting fresh again haha.
Thanks
Jittery movement woes
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
-
- Prole
- Posts: 6
- Joined: Tue Oct 22, 2013 1:46 pm
Jittery movement woes
- Attachments
-
- test_game.love
- (12.71 KiB) Downloaded 195 times
Re: Jittery movement woes
If anything, the frame-limiting love.run function would be the cause. Why not just use vsync?
-
- Prole
- Posts: 6
- Joined: Tue Oct 22, 2013 1:46 pm
Re: Jittery movement woes
Hi Kingdaro
Even if I remove the love.run function, it does the same thing...
Even if I remove the love.run function, it does the same thing...
Re: Jittery movement woes
I cannot run your .love file - Error main.lua:78: attempt to index global 'joystick_01' (a nil value)
After I edit it so I can run it (just removing all the "or joystick_01:" parts, the motion appears smooth to me. I'm going to guess you have the same problem that some of us have; if you use VSYNC, which is enabled by default, your graphics driver might be dropping frames making motion look jerky. I have forced VSYNC off in my GPU's control panel so your example appeared smooth for me.
If you try disabling VSYNC in your game, whether in the Lua code or in the .conf file or in your computer's settings, it might fix the problem.
After I edit it so I can run it (just removing all the "or joystick_01:" parts, the motion appears smooth to me. I'm going to guess you have the same problem that some of us have; if you use VSYNC, which is enabled by default, your graphics driver might be dropping frames making motion look jerky. I have forced VSYNC off in my GPU's control panel so your example appeared smooth for me.
If you try disabling VSYNC in your game, whether in the Lua code or in the .conf file or in your computer's settings, it might fix the problem.
Re: Jittery movement woes
Alternatively, I found that disabling Windows Aero helped remove jitter.
STI - An awesome Tiled library
LÖVE3D - A 3D library for LÖVE 0.10+
Dev Blog | GitHub | excessive ❤ moé
LÖVE3D - A 3D library for LÖVE 0.10+
Dev Blog | GitHub | excessive ❤ moé
-
- Prole
- Posts: 6
- Joined: Tue Oct 22, 2013 1:46 pm
Re: Jittery movement woes
Thanks guys for the help !
I have fixed the problem woohoo. I forgot to mention that I'm using Fedora 21 linux 64bit.
I turned off desktop effects as suggested and the jittering is gone. In my case, for my graphics card settings,
I ran sudo nvidia-settings, under OpenGL Settings, I have Sync to VBlank and Allow Flipping switched on.
In my love config I have vsync on.
I have attached a .love of my working setup so that it might help someone in the future when running love on linux.
I'm so happy it's fixed now. Without your help I'd still be trying to figure it out.
Now I can start learning love2D properly without that annoyance haha
I have fixed the problem woohoo. I forgot to mention that I'm using Fedora 21 linux 64bit.
I turned off desktop effects as suggested and the jittering is gone. In my case, for my graphics card settings,
I ran sudo nvidia-settings, under OpenGL Settings, I have Sync to VBlank and Allow Flipping switched on.
In my love config I have vsync on.
I have attached a .love of my working setup so that it might help someone in the future when running love on linux.
I'm so happy it's fixed now. Without your help I'd still be trying to figure it out.
Now I can start learning love2D properly without that annoyance haha
- Attachments
-
- test_love_game.love
- (760 Bytes) Downloaded 163 times
Who is online
Users browsing this forum: Amazon [Bot], Bing [Bot] and 3 guests