{"action":"created","issue":{"url":"https://api.github.com/repos/anura-engine/anura/issues/74","labels_url":"https://api.github.com/repos/anura-engine/anura/issues/74/labels{/name}","comments_url":"https://api.github.com/repos/anura-engine/anura/issues/74/comments","events_url":"https://api.github.com/repos/anura-engine/anura/issues/74/events","html_url":"https://github.com/anura-engine/anura/issues/74","id":78871724,"number":74,"title":"Particles don't seem to process their position as frequently as they should","user":{"login":"rkettering","id":863312,"avatar_url":"https://avatars.githubusercontent.com/u/863312?v=3","gravatar_id":"","url":"https://api.github.com/users/rkettering","html_url":"https://github.com/rkettering","followers_url":"https://api.github.com/users/rkettering/followers","following_url":"https://api.github.com/users/rkettering/following{/other_user}","gists_url":"https://api.github.com/users/rkettering/gists{/gist_id}","starred_url":"https://api.github.com/users/rkettering/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rkettering/subscriptions","organizations_url":"https://api.github.com/users/rkettering/orgs","repos_url":"https://api.github.com/users/rkettering/repos","events_url":"https://api.github.com/users/rkettering/events{/privacy}","received_events_url":"https://api.github.com/users/rkettering/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/anura-engine/anura/labels/New%20Rendering%20Engine%20Regression","name":"New Rendering Engine Regression","color":"eb6420"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-21T07:30:51Z","updated_at":"2015-05-26T03:36:23Z","closed_at":null,"body":"Particles don't seem to process their position (or animation frames) on a \"once per cycle\" basis, instead only seeming to update their position once per second or so.\r\n\r\nExamples include:\r\n- the falling leaves on `--level tempo-village.cfg` (they're supposed to translate smoothly through the air, rather than jumping position every several seconds)\r\n- the shots from the white flowers on `trembling-treetops.cfg` (they're supposed to have contrails/tails, rather than being round balls).\r\n- the green particles that are supposed to follow frogatto (as though he's burning) after he falls into acid (acid is present on `burning-stone.cfg`, down and to the right, and then to the left from the starting pos).\r\n- the fiery sparks which emanate from torches (they're static in position, rather than 'emitting' from the center of the torch and translating outwards)\r\n\r\n\r\nStrangely, the chimney smoke on `--level chopple-shop.cfg` works fine, as does the whitewater on `tempo-outskirts.cfg`.  As do the particles on all of frogatto's abilities."},"comment":{"url":"https://api.github.com/repos/anura-engine/anura/issues/comments/105379152","html_url":"https://github.com/anura-engine/anura/issues/74#issuecomment-105379152","issue_url":"https://api.github.com/repos/anura-engine/anura/issues/74","id":105379152,"user":{"login":"rkettering","id":863312,"avatar_url":"https://avatars.githubusercontent.com/u/863312?v=3","gravatar_id":"","url":"https://api.github.com/users/rkettering","html_url":"https://github.com/rkettering","followers_url":"https://api.github.com/users/rkettering/followers","following_url":"https://api.github.com/users/rkettering/following{/other_user}","gists_url":"https://api.github.com/users/rkettering/gists{/gist_id}","starred_url":"https://api.github.com/users/rkettering/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rkettering/subscriptions","organizations_url":"https://api.github.com/users/rkettering/orgs","repos_url":"https://api.github.com/users/rkettering/repos","events_url":"https://api.github.com/users/rkettering/events{/privacy}","received_events_url":"https://api.github.com/users/rkettering/received_events","type":"User","site_admin":false},"created_at":"2015-05-26T03:36:23Z","updated_at":"2015-05-26T03:36:23Z","body":"One possible lead on this bug is that in some cases, the `spawn_rate` seems to be internally conflated with a rate at which they process.  I.e. when particles are spawning less and less frequently, the particle system not only spawns particles less often, but it also doesn't update the positions of other particles between spawns. \r\n\r\nThere are two major categories of objects that need this - some objects happen to spawn particles fairly rarely, but need them to animate smoothly once spawned, and other objects use the `spawn_rate` as a \"flow control\" for the particles - essentially turning particle systems on and off like a water faucet.\r\n\r\nA good example of this is the `save_statue` I just added; it has a small wisp of flame over the statue when activated.  When you trigger another statue, it's supposed to cause all other statues to deactivate and remove their flames (by setting their `spawn_rate` to 0).  However, instead of having their flames dissipate like an extinguished candle, the particles representing them just pause in place.\r\n\r\n\r\nIf we're lucky, this actually may be the only cause for this bug."}}