Project:
RSS

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0006125Multi Theft Auto : San AndreasClientpublic2011-05-26 22:292017-03-29 07:50
ReporterDakiLLa 
Assigned To 
PrioritynormalSeverityminorReproducibilityalways
StatusconfirmedResolutionopen 
PlatformOSOS Version
Product Version 
Target VersionConfirmed IssuesFixed in Version 
Summary0006125: Can't swim fast on high FPS
DescriptionIt seems that swimming speed is related to your FPS, but somehow, if you have a high FPS, you swim slower. It's almost impossible to swim with 100 FPS.
Steps To Reproduce1) Get as much high FPS, as you can (80-100).
2) Get in water.
3) Try to swim and see that you swim like a turtle..
TagsNo tags attached.
Attached Files

Sponsor - Users sponsoring this issue
Sponsors List Total Sponsorship = EUR 9

2017-03-24 06:21: nonamenoname (EUR 9)

- Relationships
has duplicate 0007737closed New issues Players with high fps swim much slower than the ones with low fps. 
has duplicate 0008656closed New issues Swim bug with low FPS 

-  Notes
(0013490)
T3rr0rd3ath (viewer)
2011-05-26 22:43

this also happens in singleplayer
(0013492)
MX_Master (viewer)
2011-05-27 07:00

agree

confirmed many years ago (:

Possible fix is correcting player pos while he in water and have high FPS rate. But with high FPS we also can't move to sides while aiming. Another possible fix - limit FPS at least to 70.
(0013776)
Alexxxxx (viewer)
2011-06-23 23:36

I'm also having this problem, I can't dive either.
(0013826)
MX_Master (viewer)
2011-06-28 17:44

i have a lua fix, but hardcoded fix will be better
(0016991)
GhOsT[X] (viewer)
2012-07-07 19:50

Can you post the script fix mx_master?
(0017010)
PhatLooser (reporter)
2012-07-09 19:18

There is a bug which is about the same.
If your FPS is "unlimited" (60 or higher) your Character doesn't react on strafe keys while you aim.
It doesn't happen with framelimiter on and is a very old bug.
(0017011)
robhol (reporter)
2012-07-09 19:32

Also related: when playing on high FPS, the siren is quite hard to enable - the on/off "button" is a short press on the horn control, and the required length seems to be FPS-dependent instead of absolute. This is also a GTA bug.
(0017012)
PhatLooser (reporter)
2012-07-09 19:41
edited on: 2012-07-09 19:42

There is several ways to have a physics engine in a computer game, and I suspect that GTA used the worst possible attempt to create one. I remember when the MTA team said that "they found a code which makes the game faster".
GTA has some "useless" code which only has the "job" of slowing down the game. The reason this code is there is simple:
If you have a frame limiter, or if you try to make correct physical calculations, you run through this code until a certain amount of time was wasted.
Now, I have the suspicion that this kind of programming results in exactly those bugs. After all, most CPU's today are much faster than they were when GTA:SA was poorly translated from Console to Computer. It could be that:
1) This algorithm has some weird bug that disables it to measure time correctly;
2) This algorithm has some kind of "loop delimiter" which stops the loop not only when an ammount of time has passed, but also when the game engine just decided that running this loop 10.000 times is simply enough.
This way or the other, the code that MTA removed back then (the "senseless operations to speed up the game") may have something to do with those bugs - or, in fact, the fail concept of GTA using this way to calc physics may have something to do with those bugs.

This also is the reason why all my servers have a 60 FPS limit.

(0017017)
Feche (viewer)
2012-07-10 01:18

GTA default frame limiter is capped to 25 FPS
(0017022)
CWanted (updater)
2012-07-10 14:48
edited on: 2012-09-18 10:51

http://en.wikipedia.org/wiki/Hot_spot_(computer_science) [^]
http://en.wikipedia.org/wiki/Algorithmic_efficiency#Hot_spot_analyzers [^]
GTA SA is direct port from PS2, which by 2004 had outdated hardware.
Example: a function, that deals with peds animations depending on what kind of surface they are currently standing on, checks collisions and loads sounds. You spawn many peds and game slows down or even freezes, because that function got spammed with shitloads of info, that requires some time to operate, while other functions are waiting for results from this function. To avoid such situations Rockstar used different methods like adding delays (14 ms delay between frames) and limits everywhere (number of vehicles within streaming range or number of nodes).
For about >some "useless" code which only has the "job" of slowing down the game
there is small version of SA .exe, made by Listener, who have cleaned up like 9 mb of junk (search for gta_sa_compact.exe).

(0021143)
ata123456789 (viewer)
2014-06-27 12:18
edited on: 2014-06-27 15:03

Fix: I have tested it, interesting. Works.

https://github.com/Whitetigerswt/gtasa_swimfix [^]

(0021144)
arranTuna (manager)
2014-06-27 12:27

Servers could just make a little script which sets a client side FPS limit whenever you're in the water.
(0021145)
ata123456789 (viewer)
2014-06-27 12:33
edited on: 2014-06-27 12:53

But if this fix would work and would be added into mta, then don't need to limit player fps when in water.

https://www.youtube.com/watch?v=8ZzEKKk1Qq0 [^]

(0025115)
uhm (viewer)
2016-08-30 12:25

(I don't mean to bump this issue but it's the first Google result, and I want people to see this)

I made this resource. It is exactly what arranTuna suggests:
FPS in water=25; FPS on land=60 or 100 or whatever the current limit is set to.
https://community.mtasa.com/index.php?p=resources&s=details&id=13641 [^]
(0025712)
nonamenoname (viewer)
2017-03-14 17:20

http://pastebin.com/4hEhX3Ui [^]
 
fix water swim
 
You still can't swim deep into water in Z coordinate
Water has own fps bugged resistance

- Issue History
Date Modified Username Field Change
2011-05-26 22:29 DakiLLa New Issue
2011-05-26 22:43 T3rr0rd3ath Note Added: 0013490
2011-05-27 07:00 MX_Master Note Added: 0013492
2011-06-23 23:36 Alexxxxx Note Added: 0013776
2011-06-28 14:21 x86 Status new => confirmed
2011-06-28 17:44 MX_Master Note Added: 0013826
2012-07-07 19:50 GhOsT[X] Note Added: 0016991
2012-07-09 19:18 PhatLooser Note Added: 0017010
2012-07-09 19:32 robhol Note Added: 0017011
2012-07-09 19:41 PhatLooser Note Added: 0017012
2012-07-09 19:42 PhatLooser Note Edited: 0017012
2012-07-10 01:18 Feche Note Added: 0017017
2012-07-10 14:48 CWanted Note Added: 0017022
2012-09-18 10:50 CWanted Note Edited: 0017022
2012-09-18 10:51 CWanted Note Edited: 0017022
2013-07-30 10:41 arranTuna Relationship added has duplicate 0007737
2014-06-27 12:18 ata123456789 Note Added: 0021143
2014-06-27 12:27 arranTuna Note Added: 0021144
2014-06-27 12:33 ata123456789 Note Added: 0021145
2014-06-27 12:53 ata123456789 Note Edited: 0021145 View Revisions
2014-06-27 15:03 ata123456789 Note Edited: 0021143 View Revisions
2014-06-27 15:03 ata123456789 Note Edited: 0021143 View Revisions
2014-11-25 11:59 arranTuna Relationship added has duplicate 0008656
2015-01-09 01:04 qaisjp Project New issues => Multi Theft Auto : San Andreas
2015-08-12 21:19 arranTuna Target Version => Confirmed Issues
2016-08-30 12:25 uhm Note Added: 0025115
2017-03-14 17:20 nonamenoname Note Added: 0025712
2017-03-24 06:21 nonamenoname Sponsorship Added nonamenoname: EUR 1
2017-03-24 06:21 nonamenoname Sponsorship Total 0 => 1
2017-03-29 07:50 nonamenoname Sponsorship Updated nonamenoname: EUR 9
2017-03-29 07:50 nonamenoname Sponsorship Total 1 => 9


Copyright © 2000 - 2017 MantisBT Team
Powered by Mantis Bugtracker