
One thing though, the platformer physics demo is extremely cpu intensive on my machine (an old +3000 AMD warhorse), the other demos/love games don't seem to do this. So I was wondering if there's some particular aspect about that demo that hogs cpu?
Code: Select all
local quadTree = passion.ai.QuadTree:new(3000,3000)
Code: Select all
quadTree:add(object) -- object:getBoundingBox() must be implemented
Code: Select all
object:setPosition(x2,y2)
quadTree:update(object)
Code: Select all
quadTree:remove(object)
Code: Select all
quadTree:query(x3,y3,w3,h3) -- returns objects on that region, on an efficient way
Thanks for pointing that out. I'll try to upload an updated version during this weekend.Geti wrote:OP has a "cannot deliver file" error for me.
Users browsing this forum: Ahrefs [Bot] and 5 guests