Figjam on Firefox on Ubuntu is painfully slow and laggy. On a 32-core Ryzen machine, drawing lines on an empty file visibly lags. Doing the same thing in Excalidraw, on the other hand, is extremely responsive.
Is your GPU doing any work? What are the results from here? https://pmndrs.github.io/detect-gpu/