Skip to content

Fix PCES overflowing VRTime internal tick counter when run without a termination argument#1

Open
huskabyte wants to merge 1 commit intoITI:mainfrom
huskabyte:main
Open

Fix PCES overflowing VRTime internal tick counter when run without a termination argument#1
huskabyte wants to merge 1 commit intoITI:mainfrom
huskabyte:main

Conversation

@huskabyte
Copy link

@huskabyte huskabyte commented Dec 1, 2025

When run without arguments, PCES would set the termination argument to the max float divided by 10, which overflowed vrtime's internal tick counter and caused the simulation not to be run (due to a VERY negative until arg).

Fixed by taking the maximum ticks (divided by 2 for float rounding issues - likely OK to just subtract a value.) and passing it to TicksToSeconds (in case the user has changed the resolution) before using it as the termination value.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant