Laggy SWFs

Broxter

  • Posts: 19
Why does this lag so horrendously?

There are 63 actors that move one pixel every frame, but they have have no physics, collisions, transformations, extensive 'always' code or anything I'd consider CPU-taxing.

Is this acceptable performance?
achroware.com

Luyren

  • *
  • Posts: 2789
I'm getting a solid 60 fps on my end. Not lagging at all.
My Stencyl resources are available here: https://luyren.itch.io/
Cutscenes, RPG Elements, Particles, Map System and many more.

Broxter

  • Posts: 19
Seriously? Do you think FlashPlayer hates my PC?
achroware.com

Epic428

  • Posts: 1118
It is very erratic for me. bouncing between 40 and 70 fps. but it is smooth.
James Moore - Official Support & Documentation.
We cannot and will not respond to PM's asking questions. Please make a new thread in the forums if you have any questions, Thank you.
For better support and faster response times, please post your logs regarding any Stencyl related issues. Debug > Logs > Generate Logs

irock

  • *
  • Posts: 2891
I'm getting around 30.

Broxter

  • Posts: 19
I'm getting 20FPS at the absolute most, but mostly around 10FPS. :(
achroware.com

Joe

  • *
  • Posts: 2478
My FPS are jumping around, too. It would help to see your Behavior.

Broxter

  • Posts: 19
I've uploaded the game to forge; it's under the name Minelude.

Thanks.
achroware.com

Joe

  • *
  • Posts: 2478
The only thing I can think of is the large number of Actors (70) you have on screen at once, each processing something every logic frame.

Broxter

  • Posts: 19
Yeah, I really don't think that is many. If I wanted to make a bullet hell shmup (and use actors for the bullets, which is what you'd think would be normal in Stencyl), I'd be stuck in a hole.
achroware.com

Joe

  • *
  • Posts: 2478
In a bullet shmup, you'd be recycling Actors, and the bullets themselves probably wouldn't have any logic associated with them.

I also think it's particularly taxing because you're manually setting the positions. Box2D is still powering everything, after all, and it's not meant for this kind of movement. Typically you'd just modify the velocity (and certainly not every step).

Broxter

  • Posts: 19
Do you know if there's any way to disable Box2D? While it is good, clearly it's not suitable all the time...

I understand what you're saying but I mean, y'know, people have different ways of coding things and Box2D is crippling one method of making things move.
achroware.com

Blob

  • *
  • Posts: 721
In a bullet shmup, you'd be recycling Actors, and the bullets themselves probably wouldn't have any logic associated with them.

I also think it's particularly taxing because you're manually setting the positions. Box2D is still powering everything, after all, and it's not meant for this kind of movement. Typically you'd just modify the velocity (and certainly not every step).
This is the kind of information that would be useful on StencylPedia on how to optimize game speed. I had no idea constant coordinate movement was slower than natural speed settings.

~ Blob

Epic428

  • Posts: 1118
James Moore - Official Support & Documentation.
We cannot and will not respond to PM's asking questions. Please make a new thread in the forums if you have any questions, Thank you.
For better support and faster response times, please post your logs regarding any Stencyl related issues. Debug > Logs > Generate Logs

Blob

  • *
  • Posts: 721
Ah, I missed those, they weren't there last time I checked StencylPedia (Though, one of them isn't that recent, so I'm wondering how I didn't catch it). Thanks.

~ Blob