Open Timmy-the-nobody opened 9 months ago
When sending too much events from JS to lua the whole WebUI page freezes and become unusable
Install this package on your server: webui-bug-package.zip
It contains a web page, which runs this every 5ms
setInterval(() => { Events.Call("SomeEvent"); Events.Call("SomeEvent"); Events.Call("SomeEvent"); Events.Call("SomeEvent"); Events.Call("SomeEvent"); Events.Call("SomeEvent"); }, 5);
In the page there's a button that changes color when hovered After a bit of time, hovering the button will not change it's color
The page shouldn't freeze
The page freeze, and the only way to unfreeze it is by reloading the package and recreate the WebUI instance
well I think it's quite expected when sending > 1000 events per second
There should be a mitigation for that imo
Prerequisites
Your Environment
Description
When sending too much events from JS to lua the whole WebUI page freezes and become unusable
Steps to reproduce the behavior
Install this package on your server: webui-bug-package.zip
It contains a web page, which runs this every 5ms
In the page there's a button that changes color when hovered After a bit of time, hovering the button will not change it's color
Expected behavior
The page shouldn't freeze
Actual behavior
The page freeze, and the only way to unfreeze it is by reloading the package and recreate the WebUI instance