Web UI (HTML/CSS/JS Interface Widgets)

Did I miss something in the docs here regarding performance: https://cdn.tracerinteractive.com/webui/documentation.pdf ?

I’ve set up this plugin in a blank TPP project on 4.27, and in a few other projects I have on 4.27. The implementation is the 2-file widget hud barebones detailed in the above pdf. On the blank project best browser fps using the following code I can get is about 35-40 fps at 1080p, and about 15-17fps at 2160p. This is measured using the following js:

var lastCalledTime;
var fps;

const times = [];

function refreshLoop() {
  window.requestAnimationFrame(() => {
    const now = performance.now();
    while (times.length > 0 && times[0] <= now - 1000) {
      times.shift();
    }
    times.push(now);
    fps = times.length;
    $("#fpsMeter").text(fps.toFixed(1) + " FPS");
    refreshLoop();
  });
}

I noticed this at first when css transitioned elements were taking a bit to respond. Maybe I’m just dumb and missed something. Thanks if you read this and thanks for the plugin - threw some food monies at your website.

Other specs if you care: i7-11700k, RTX 3090 - games at 120 cap.