Skip to content
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

Performance tweaks #1

Open
ianmackenzie opened this issue Aug 15, 2020 · 1 comment
Open

Performance tweaks #1

ianmackenzie opened this issue Aug 15, 2020 · 1 comment

Comments

@ianmackenzie
Copy link

Hello! @w0rm and I stumbled across this game recently and it's really, really cool - loved playing through the first few levels and seeing what you've built with elm-3d-scene 😄

Let me know if there's anything I can help with...one thing I noticed was that performance should improve significantly if you update to elm-explorations/webgl 1.1.2 (just released), since there were a bunch of optimizations made that are especially useful for large numbers of entities. (I think you should be able to just edit elm.json to use version 1.1.2 instead of 1.1.1, and then run elm make again.) You'll probably also want to use elm make --optimize when you can - that should speed up some of the elm-geometry calculations or anything you're doing with elm-units.

In the long term, I think things like text rendering should be much more efficient once I implement ianmackenzie/elm-3d-scene#13 - since then you'll be able 'pack' all the cubes for a single phrase into one mesh that will be rendered as a single WebGL entity (only one WebGL draw call instead of one per block).

Anyways, awesome work - I look forward to seeing the finished game!

@hilbert-yaa
Copy link
Owner

Sorry for late notice but still, I'm excited to have your comments! Your elm-3d-scene package is fascinating! I'm still working to my bachelor dual-degree so the tight curriculum restricts me from improving it for now. But I will pleasantly take your advice and return to this game once the semester is finished.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants