rohanshiva / gitgame

Home Page:https://gitgame.live

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Spamming `Next` button in the game leads to code rendering lag

Ramko9999 opened this issue · comments


In the above video, I clicked Next about 20 times. It seems that if Next is clicked too frequently, the code rendered in the editor changes uncontrollably till it is consistent with the # of times Next is clicked. This is due to the latency of the server's response to the on_pick event. Adding ratelimiting (X clicks per Y secs) should allow the host to fast forward unwanted chunks while preventing spam.