0 votes

So, I was working on my 2d Platformer game project. I built an executable file to test it on my laptop. It works as expected with no issues on the computer I made the game on, but on the laptop I ran into various issues. First of all, the player seemed to be moving slower and his jump height was a bit lower as well. I have all my movement code in "func process(delta):" (Tell me if I need to change that). Secondly, there were several visual stutters that only occur on the laptop. My laptop's specs are half-decent with an i3-7007u and Intel HD 620 Graphics and I'm not really sure what's up with all the lag and physics problems. Third problem is the "gravity" for the player that I programmed. It's a constant, that is multiplied by delta, and then added to the vertical speed variable. The horizontal and vertical speed variables together make up the Vector2 "velocity" that is used in the function "moveandslide()" for movement. There is a vertical speed clamp that clamps it between "speedY" and "MAXFALLSPEED". Again this works correctly on my desktop PC, but on my laptop, sometimes the vertical speed becomes greater than the MAXFALL_SPEED.

Sorry for this long-ass post. I'm a Godot newbie and I'm desperate to finish my first big project. Any help will be greatly appreciated.

(PC: i5-3470 and GTX 750 Ti)
(Laptop: i3-7007u and HD 620)

asked Aug 20 in Projects by CynicalKazu (33 points)
edited Aug 20 by CynicalKazu

It could be down to framerate, have you set a target framerate in project settings > force fps?

Will definitely try that tomorrow. It's night time for me.

Thanks! It works now!

1 Answer

0 votes
Best answer

I found the issue, thanks to the comment by Magso. I set the fps limit to 60 and then tweaked my game's movement mechanics and physics according to it. Now it's working awesomely on every machine.

answered Aug 21 by CynicalKazu (33 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.