Comments (2)
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.
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)
- Cannot use GitHub branch to create projects on Windows HOT 5
- Missing flipX and flipY in graphics.Spritemap HOT 4
- mouseWheelDelta can only be read once per frame
- Fail to run on new OpenFL HOT 4
- Camera doesn't follow entity after calling camera.anchor HOT 8
- TiledImage doesn't scale properly
- Type not found : lime.graphics.GLRenderContext HOT 4
- Collision with Grid and Hitbox is off by a pixel when the Hitbox's entity has non-integer x and y values. HOT 1
- Screen scaling problems HOT 1
- Entity.setHitbox and Entity.mask are different
- CONTRIBUTING.MD needs to be updated
- HTML5 rendering issue HOT 5
- Type not found : flash.display.OpenGLView HOT 9
- Rapid inputs consistently crash Android build HOT 3
- Getting started build fails HOT 4
- Document: Memoize entity list allocation
- Broken Build on Latest OpenFL HOT 1
- Type not found : openfl._internal.renderer.context3D.Context3DRenderer HOT 1
- Does the current dev version of HaxePunk work with Haxe 4.x? HOT 4
- haxepunk.com domain expired HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from haxepunk.