Page MenuHomeFeedback Tracker

skipTime command can cause incorrect results, and cause persistent extremely low FPS when skipping large amounts of time
Feedback, WishlistPublic

Description

The skipTime script command makes incorrect changes to the game world time when skipping large amounts of time (say one year).

When given extremely large numbers (say three years), it starts a continuous "time warp" effect that reduces the game to about 1 FPS. This condition is persistent until the game is restarted, and may continue until the game crashes with an "Out of memory" type error message.

Both of these issues seem to be related to the way the game stores the current date.

Details

Legacy ID
3453833068
Severity
None
Resolution
Open
Reproducibility
Always
Operating System
Windows 7
Category
Scripting
Steps To Reproduce
  1. Create a new mission in editor, using any time setting
  2. Start mission preview, and open debug console
  3. Enter the following into a watch field: date
  4. Enter the following into another watch field: dateToNumber date
  5. Enter the following in the execute field: skipTime (365*24)
  6. Observe date change (date goes backwards, by more than a year)
  7. Repeat steps 4 and 5 a few times (date goes forward, sometimes by one year, sometimes more and sometimes less).
  8. Enter the following in the execute field: skipTime (3*365*24)
  9. Note game get stuck at about 1 FPS, hour of day reported by date command changes to impossible values, clouds may appear strange. Exit mission and editor, load any other mission and note performance is still terrible. Game may crash if left long enough.
Additional Information

Workaround:
Use the setDate command to make large changes to game time

Tested in 0.71.106998

Event Timeline

ceeeb edited Steps To Reproduce. (Show Details)Jun 28 2013, 8:30 AM
ceeeb edited Additional Information. (Show Details)
ceeeb set Category to Scripting.
ceeeb set Reproducibility to Always.
ceeeb set Severity to None.
ceeeb set Resolution to Open.
ceeeb set Legacy ID to 3453833068.May 7 2016, 3:04 PM
ceeeb added a comment.Jun 28 2013, 9:05 AM

skipTime has similar behaviour in Arma 2 OA too

This issue is still apparent in release build 1.00.109911

Maybe skiptime wasnt designed to handle large intervals for which setdate is probably more suitable

ceeeb added a subscriber: KillZone.May 7 2016, 3:04 PM
ceeeb added a comment.Dec 5 2015, 4:48 AM

@KillZone Kid
Undoubtedly, but commands should be a bit more robust. The persistent low FPS time warp state this issue can create has potential for malicious use, ruining not only the current mission but the current game instance.

Time warp low FPS issue still a problem in dev build 1.43.130502. FPS is subsequent missions is slightly better than before (8 FPS), but mission editor reports strange config errors that normally don't occur, suggesting this issue somehow affects the game config.

ceeeb added a comment.Dec 5 2015, 4:58 AM

Unable to reproduce persistent low FPS issue in build 1.54, but inaccurate resulting time/date after skipTime persists.

Trivial, but still a bug.

No change in dev build 1.63.137921

Low FPS persists for duration of current mission.

BIS_fnc_KK updated the task description. (Show Details)
BIS_fnc_KK edited Steps To Reproduce. (Show Details)
BIS_fnc_KK edited Additional Information. (Show Details)
BIS_fnc_KK set Operating System to Windows 7.

Rev 148840, skipTime is limited to +/- 1000 hours per skip

BIS_fnc_KK removed BIS_fnc_KK as the assignee of this task.Feb 16 2022, 11:03 PM
BIS_fnc_KK changed the task status from New to Feedback.
BIS_fnc_KK added a subscriber: BIS_fnc_KK.