-
-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug: much area() induces lag even if transform is never changed #538
Comments
The strange thing is that this only occurs in the kaplayground, I can't reproduce it when I copy it into a local example in my fork of kaplay, they all get max fps. Even the "export to html" opened via a file:// URL gets lag, but the localhost:8000 version from vs code does not lag. |
Turns out this is because the "new tag methods" broke something , if you change |
transforms and areas are going to be cached in the future, so at least they won't be recalculated each frame |
ah good, my game am getting like 5 FPS in Chrome which is the best... do you have an eta on the caching? |
I had a branch which was nearly finished, but by now I think there are too
many conflicts. So I'll start over.
…On Mon, 25 Nov 2024 at 08:40, dragoncoder047 ***@***.***> wrote:
ah good, my game am getting like 5 FPS in Chrome which is the best...
do you have an eta on the caching?
—
Reply to this email directly, view it on GitHub
<#538 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAHIYWZNSRYUGQW7BE252D32CJPWJAVCNFSM6AAAAABSMMSCHKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIOJWGMZTOOBWHE>
.
You are receiving this because you commented.Message ID:
***@***.***>
--
Kind Regards,
Marc Flerackers
Software Engineer
|
This creates 500 objects with random transforms, with 3 objects nested in each, and on the lowest level, it just adds area(). (commented out above cause less laggy). The transforms are not changing, yet if area() is used it lags much.
Results from kaplyground
The text was updated successfully, but these errors were encountered: