Rocko Posted December 11, 2025 Posted December 11, 2025 Hi Josh. The default FPSPlayer in Leadwerks 4.6 has a strange piece of code that seems to run when the player gets hit. If I delete it, nothing really changes, but the FPS goes up by about 7. What was that code for? Quote
Josh Posted December 12, 2025 Posted December 12, 2025 It looks like this was some code to lower the weapon when you are close to a wall, but the part that would make this work is commented out. Quote Let's build cool stuff and have fun.
Rocko Posted December 12, 2025 Author Posted December 12, 2025 6 hours ago, Josh said: It looks like this was some code to lower the weapon when you are close to a wall, but the part that would make this work is commented out. Okay, I understand, but to avoid creating new threads, I'll ask this question in this thread: Every time, when i run my project in leadwerks game editor, I get different FPS (I got less of 10 to 15 FPS sometimes). Every time same map, same player and camera location and rotation on map, but different fps. Why is this happening? This is very annoying! Quote
Josh Posted December 12, 2025 Posted December 12, 2025 It sounds like your hardware is producing different results, maybe based on power consumption or heat? Is this a laptop of a desktop? Maybe some kind of power throttling is occuring. If you have vertical sync enabled, then the framerate will just be limited to your screen refresh rate, so as long as you're that fast, there won't be any variation. Quote Let's build cool stuff and have fun.
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.