Engine Optimization / Preventing Slowdown ?

User avatar
SuperNatetendo
Posts: 79
Joined: Wed Aug 08, 2018 4:51 pm

Engine Optimization / Preventing Slowdown ?

Post by SuperNatetendo » Mon Apr 29, 2019 10:49 pm

Okay, so I'm at a loss here -

I'm trying to think of good ways to get more objects on screen with less slowdown. Specifically projectiles. I've simplified their Tile Collision to only a few points. But it doesn't gain me that much.

FrankenGraphics mentioned you could save time by only checking for collisions when at certain x or y coordinates, but I don't know ASM well enough to implement such a change.

Is there any other memory hogs that one could look into that could be removed/reworked for my single screen game?
Gilbertmaxter
Posts: 100
Joined: Tue Oct 16, 2018 3:04 am

Re: Engine Optimization / Preventing Slowdown ?

Post by Gilbertmaxter » Mon Apr 29, 2019 11:30 pm

Well tahat depends on the game. If your doing a adventure game top bottom. Remove the scrolling bit of that engine. What are you making ?
User avatar
SuperNatetendo
Posts: 79
Joined: Wed Aug 08, 2018 4:51 pm

Re: Engine Optimization / Preventing Slowdown ?

Post by SuperNatetendo » Tue Apr 30, 2019 12:03 am

Gilbertmaxter wrote:
Mon Apr 29, 2019 11:30 pm
Well tahat depends on the game. If your doing a adventure game top bottom. Remove the scrolling bit of that engine. What are you making ?
NoScroll platformer.
Gilbertmaxter
Posts: 100
Joined: Tue Oct 16, 2018 3:04 am

Re: Engine Optimization / Preventing Slowdown ?

Post by Gilbertmaxter » Tue Apr 30, 2019 12:07 am

Are you using the no scroll core ?
User avatar
SuperNatetendo
Posts: 79
Joined: Wed Aug 08, 2018 4:51 pm

Re: Engine Optimization / Preventing Slowdown ?

Post by SuperNatetendo » Tue Apr 30, 2019 12:30 am

Gilbertmaxter wrote:
Tue Apr 30, 2019 12:07 am
Are you using the no scroll core ?
Yep. Specifically, Dale Coop's 2P NoScroll Core.
Gilbertmaxter
Posts: 100
Joined: Tue Oct 16, 2018 3:04 am

Re: Engine Optimization / Preventing Slowdown ?

Post by Gilbertmaxter » Tue Apr 30, 2019 1:04 am

Are you using projectiles ?
User avatar
SuperNatetendo
Posts: 79
Joined: Wed Aug 08, 2018 4:51 pm

Re: Engine Optimization / Preventing Slowdown ?

Post by SuperNatetendo » Tue Apr 30, 2019 1:43 am

Gilbertmaxter wrote:
Tue Apr 30, 2019 1:04 am
Are you using projectiles ?
Yeah. Like the original post said, I'm attempting to make quite a few appear at once.
Gilbertmaxter
Posts: 100
Joined: Tue Oct 16, 2018 3:04 am

Re: Engine Optimization / Preventing Slowdown ?

Post by Gilbertmaxter » Tue Apr 30, 2019 2:17 am

hmm for the player or the monster ?
Gilbertmaxter
Posts: 100
Joined: Tue Oct 16, 2018 3:04 am

Re: Engine Optimization / Preventing Slowdown ?

Post by Gilbertmaxter » Tue Apr 30, 2019 2:20 am

For the player side and monster side I may have an idea. it involves the ammo and charger code that dale uses I used it to prevent the player from shooting to much. for the monster you can setup delays in the action steps so that they can be timed to shoot every 10 seconds or 7 or however long, not sure the limit.
User avatar
SuperNatetendo
Posts: 79
Joined: Wed Aug 08, 2018 4:51 pm

Re: Engine Optimization / Preventing Slowdown ?

Post by SuperNatetendo » Tue Apr 30, 2019 2:22 am

Gilbertmaxter wrote:
Tue Apr 30, 2019 2:20 am
For the player side and monster side I may have an idea. it involves the ammo and charger code that dale uses I used it to prevent the player from shooting to much. for the monster you can setup delays in the action steps so that they can be timed to shoot every 10 seconds or 7 or however long, not sure the limit.
See, my problem is not that I'm having trouble limiting projectiles. It's that I DON'T want to limit them and instead want to modify the engine to be able to handle the increase in objects.
Post Reply