Zyllos / tts_ftc_base_lua_scripts

FTC Map Base Lua Scripts
3 stars 2 forks source link

Stuttering #12

Open Zyllos opened 3 years ago

Zyllos commented 3 years ago

Reviewing the FTC Base Map and other TTS tables, FTC Base Map seems to have a stutter every few seconds.

The Dice Table constantly calls a function for counting dice values, onDiceCount(). Also, TTS auto saves every few seconds. the onSave() functions might be too heavy and causing some stuttering when the saving.

Zyllos commented 3 years ago

Playing around with the map, it definitely looks like the onSave() function calls for all the various scripts take a while to perform with the auto save function for TTS.

Doing to do some research into what could be resolved for this, or what possible mitigation steps could be taken to help with this problem.

As such, it could be possible that this is not a bug of our map, depending if the onSave() functions are just process heavy.

Zyllos commented 3 years ago

This problem looks to be coming from the onSave() function calls. Based on reviews, having large amounts of objects and scripts to save can lead to the auto save feature to cause hangs due to the amount of data being written.

This issue will not be tied to the v2.33 release.

Zyllos commented 3 years ago

Removing bug label as this needs more review before labeling this as a FTC bug.

Orta15a commented 3 years ago

As a fyi, there is an interesting discussion on this topic on the TTS discord server where users report linking the stuttering to the score sheet.

Zyllos commented 3 years ago

Kurcenkurce has pointed me to that topic. I will try to do more reviews of this issue.