My game - A little about development

Does it lag when you play it in preview mode?

Yes, it happens when I have more than 5 enemies on the screen!

edit: Look the video:

1 Like

Iā€™d suggest you run it through the performance profiler, and see where the bottleneck is. Because 5 enemies is not many by a long shot.

You can also check out this link on how to debug poor performance.

Often Iā€™ve found the biggest performance impactors are:

  • Sprite masks (note, this is not collision masks)
  • Lots of Repeat for Each Object
  • Layer effects
  • Objects not set as hidden that are always completely obscured by other objects.
1 Like

I think some things are wrong there.

1 Like

There are 2 percentage columns there. Youā€™re highlighting the % of parent. Look at the % of total (right most column). So although PlatformerObject makes up 42.51% of the object (pre-events) time, itā€™s only taking up 3.13% of the overall game.

What is DEV ONLY - ALL SCALES? I suspect itā€™s a group, and if so, what does it do? It appears to be taking up 20% of the processing time.

Next Iā€™d look at the External Events (taking up almost 40% of the time), particularly the FSM which is also taking up 20% of the processing time.

So look at the larger % of Total time figures, and see if you can reduce those.

dev Only

That woul dbe better placed in an "At the beginning of the scene" event. Though not sure why that would take up so much of the processing time.

1 Like

ok, I still donā€™t know what to do with my FSM (finite state machine) because I use it on my character, and also on my enemies. I could see that he is lagging in my gameā€¦

How many frames is each characterā€™s animation?

For me, when I loaded too many frames (300 pngā€™s) of animation for a sprite, my game lagged big time;however, the animation looked cool. :slight_smile:

Hey @RbetterKids

It depends, there are some that are 5 others 6, some donā€™t go beyond 3.

But the LAG issue I already fixed. Iā€™m still going to make an update and post it here. Lots of new stuff and lots of improvements.

Another thing, when we export the game, the gameplay and frames increase. In fact, itā€™s better to play in the browser than in gDevelop itself. Thatā€™s because according to Arthuro, Gdevelop uses the old version of chrome that can cause certain problems, and thatā€™s why when we export it is better.

Look here:

1 Like

Hi @willianholtz , Wow! Great to know and very happy that this issue has been resolved for you. :slight_smile: Thank you very much.

1 Like

New demo version coming soon.

Some highlights will be shown:

  • enemies
  • Character evolution
  • Item drops
  • Skill Collection
  • save
  • Areas available
  • Armor, weapons and items
  • And an intro with a Boss.

The base game is ready. But Iā€™m still setting up the rooms that the Character will visit (which will be many) And finally, include all Bosses in the game and release for mass testing.

For investment reasons, I still have a lot of things to do in the gameā€™s ā€œenvironmentā€ issue. If you are interested in learning more about the game and want to help, please contact me via PM.

For Brazilians: Se vocĆŖ Ć© brasileiro e quer ajudar no projeto de alguma forma, favor entrar em contato por MP. Se souber mexer com Tiled e montar cenĆ”rios do estilo metroidvania, serĆ” um ponto positivo.

Update:

1 Like

Wow, you get a pretty cool piece of work. Donā€™t give up on development by any means. I believe you will have a really great game.

1 Like

Thanks! The game is now 80% ready! Whatā€™s missing are some rooms with bosses! In which Iā€™m having some problems with ideasā€¦

Great information in this thread for me(a beginner). Thanks, everyone and Goodluck willianholtz :slight_smile:

1 Like