multitheftauto / mtasa-blue

Multi Theft Auto is a game engine that incorporates an extendable network play element into a proprietary commercial single-player game.
https://multitheftauto.com
GNU General Public License v3.0
1.41k stars 438 forks source link

Vehicles auto-braking on high fps #2935

Open Xenius97 opened 1 year ago

Xenius97 commented 1 year ago

Describe the bug

If you release acceleration btn your car will braking automatically https://streamable.com/xs935s

Steps to reproduce

Get a car https://github.com/multitheftauto/mtasa-resources/issues/419

Version

All

Additional context

Parent issue:

Relevant log output

No response

TracerDS commented 1 year ago

https://wiki.multitheftauto.com/wiki/SetFPSLimit

74 FPS is the breaking point that opens the door to various more severe GTA bugs related to FPS and physics.

TLDR; The higher the FPS, the worse the gameplay. The same thing happens in singleplayer at FPS >= 60

Xenius97 commented 1 year ago

74 FPS is the breaking point that opens the door to various more severe GTA bugs related to FPS and physics.

But still a bug, many fps bugs got fixed a few months ago. I've noticed this above 150fps (https://streamable.com/jo9e43)

TracerDS commented 1 year ago

iirc this is the engine's issue. Not much can be fixed with shitty engine. Only small patches. If it wasnt fixed for a very long time, that means it cant be fixed without changing the source code of the gta itself (otherwise someone would have already done it, right?)

botder commented 1 year ago

A branch in my repository fixes some problems (partially; while introducing others) including the "auto-braking on high fps": https://github.com/botder/mtasa-blue/commits/feature/fixed-physics-rate

lopezloo commented 1 year ago

Parent issue:

(have edited first post to include that)

lopezloo commented 1 year ago

This issue was fixed in 7c8a1ab93d091b06262749b482d6c8142ca69eea (#2784), then reverted in ef792d6af62443f97014621334c7188dddb4ef29 (#2787) due to breaking compatibility on race maps.

Thus could be readded as optional switch in setWorldSpecialPropertyEnabled or setGlitchEnabled function.

@Merlin

Yok009 commented 1 year ago

give me scripts