Code Monkey home page Code Monkey logo

Comments (2)

MattTuttle avatar MattTuttle commented on May 17, 2024

It should be greater than. This checks to see if the layer data has passed a certain threshold. If it passes the threshold the atlas is drawn immediately. Haxe/NME was slowing down due to too many draw calls being processed at once so I added this in.

You can bypass it by setting Atlas.drawCallThreshold to a very high value. There is still a draw call later in render() so it shouldn't prevent any rendering.

from haxepunk.

scriptorum avatar scriptorum commented on May 17, 2024

Ah, okay, I get it now. I don't know why flipping the operator corrected my issue. I have some objects that just don't want to display in conjunction with the map, which is driven by HaxePunk-Tiled. The map is obviously obscuring the objects, but they show up under some conditions. If I push the map layer (which is at 100) back to 123 the objects show. 122 they don't. Mind you the nearest object is at layer 90, so this makes no sense to me. Or if I adjust the layer by 1 at runtime the objects appear at that point. The what where? Who what? Huh?!

from haxepunk.

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.