nanos-world / issues

Issue Tracker for nanos world
9 stars 1 forks source link

WebUI freeze #994

Open Timmy-the-nobody opened 9 months ago

Timmy-the-nobody commented 9 months ago

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

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

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

gtnardy commented 9 months ago

well I think it's quite expected when sending > 1000 events per second

Timmy-the-nobody commented 9 months ago

well I think it's quite expected when sending > 1000 events per second

There should be a mitigation for that imo