Giter Club home page Giter Club logo

Comments (8)

deepnight avatar deepnight commented on May 31, 2024

Could you please send me a demo project (including the tilesets) by email (ldtk at deepnight dot net)?

from ldtk.

Rhemery avatar Rhemery commented on May 31, 2024

Ive sent the email

from ldtk.

VergilUa avatar VergilUa commented on May 31, 2024

Can confirm that this is an issue with 1.4.1.

I've got a bunch of auto-layers with lots of rules that aren't stopped. On top of that entities layer, some background & foreground.

If "main" layer is in between those auto-layers - painting slows down to a crawl and undo takes seconds to perform on decent rig. Editor just freezes, no extra CPU time taken.

E.g. in this order:
image

If main layer set first, it works just fine:
image

Fortunately, I don't need actual layer to be rendered, so as a workaround this is fine.

from ldtk.

deepnight avatar deepnight commented on May 31, 2024

This should be fixed in 1.5. See #1031 for other rules optimizations

from ldtk.

deepnight avatar deepnight commented on May 31, 2024

1.5 will have much better perfs overall for rules in large levels.

However, your use-case is a bit extreme, with very large levels + small grid size + many rules. Therefore, there won't be any miracle here: your experience will still be somewhat laggy, even though much more manageable.

from ldtk.

Rhemery avatar Rhemery commented on May 31, 2024

What if there was a setting where when on, drawing to intgrid would not apply rules until mouse is released? Drawing to intgrid is just changing a number and you would not need to apply rules every cell change.

I made map maker back in the day where I could edit level of size 30000x30000 and same tilesets from the project i provided without any slowdown. But it was made in GameMaker, so Im guessing LDtk is limited by programing language performance its using?

from ldtk.

deepnight avatar deepnight commented on May 31, 2024

I could totally add a button to disable rendering "as you draw", but each time you would release mouse button, you will have a lag for re-render.

The issue is not the level size, but the combination of level size + many auto-layer rules.

from ldtk.

deepnight avatar deepnight commented on May 31, 2024

I found some new culprits and got performances significantly increased with your project file. 👍

from ldtk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.