4 ms·
When I inspected, and added transform: scale(0.4) to the div of the checkbox array, the game seems to run smoothly. Linux, Firefox nightly, Webrender, generic
by capitainenemo 5y ago
When I inspected, and added transform: scale(0.4) to the div of the checkbox array, the game seems to run smoothly.
Linux, Firefox nightly, Webrender, generic nvidia card. Will try the AMD later tonight.
I wonder if the transform: scale(0.4) issues are specific to his computer or to Chrome.
- healeycodes 5y agoIf anyone wants to PR a fix for more browsers please do! (https://github.com/healeycodes/doom-checkboxes/issues/1 https://github.com/healeycodes/doom-checkboxes/issues/1). Otherwise, I'll probably look into this tomorrow.
- capitainenemo 5y agoWell, the straightforward approach would be to replace the zoom with transform, since it's standard and not deprecated. Let me see what happens when I try that in Chromium locally.
- capitainenemo 5y agoOk. I added both properties over here in Chromium. It's really hard to tell since performance seems to be almost identical, but it seems very slightly less sluggish using transform than using zoom (using test of standing on one place and pressing left/right and observing the pan, then unchecking zoom and checking transform). Basically same though. Any variation might be due to element jumping around page due to how those 2 attributes work (easily handled with positioning or transform). It'd be kinda surprising to me that Chromium would treat zoom differently than scale transform. I wonder if you just got the impression it was sluggish due to like jit warming up or something.