Tips for framerate ? [Fixed]

merrak

  • *
  • Posts: 2738
Or i dont get what you mean guys by using simple physics (its on settings right ? )

That was the 'simple physics' I was referring to. From what I could tell from the hxScout analysis, it looked like overlap detection lag was the fault of a small number of culprits--so if you can identify those actors it may be a simple fix.

Unfortunately, I don't have any good suggestions on where to look. Like rob1221, I'd have to spend hours studying your project to figure out how it's pieced together.

From your video, I noticed lag starting at 2:40, when the gold-colored actor comes into the scene. Does removing its collision boxes entirely have any effect on lag? If so, then I think you've found a direction to go deeper toward--the collision boxes of larger actors.

airman4

  • Posts: 875
At 2'40 it's  the super attack you refer too then
It's an attack that when it touches the boss , boss get pushed back
It's like a desperation move from fighting games
I can't remove the collision box or there is another technique i can use


Also this video version have used PNGquant !
I try to use simple physics as much i can , sometimes when i use them , it doesnt work anymore well

According to the Deviantart flash test results , i have a very bad pc for flash games

airman4

  • Posts: 875
I use always for recording time and calculate score
Is there another way to do it ?
always
increment by step size/1000 Score (improve if you dash , normal you gain terrain )

increment by step size/1000 Time of the game , current game

increment by step size/1000 Whole time played on the game , whole time spent

airman4

  • Posts: 875
2 versions
Play with UP, EFT, RIGHT; DOWN
AVOID RED totems (red cubes , cubes with a sword inside give one action monument )
Game is messy gameplay wise but i spent most time optimise the game
NO BACKGROUND
http://bit.ly/2je1ky1

GAME ONLINE WITH BACKGROUND
http://k-hermann.deviantart.com/art/Malaika-Princess-devs-beta-test-01-656598410


WITH BACKGROUND
http://bit.ly/2i9kMiC

SO final question for now
Did the performance improved ?
How much FPS do you get on Both , so i'll see if i can add background in the end.

« Last Edit: January 10, 2017, 09:07:57 am by airman4 »

airman4

  • Posts: 875
A friend told me to make the heroine have check for collision and not the way other around
Yeah each yellow cubes checks for collision and all

I'll also will removes background stencyl to replace them as sprites
Break down them into smaller images than those big background images

I'l recoding the whole thing right now and see if it improves

airman4

  • Posts: 875
i'm doing more improvement now
thanks very much to all of you for your time and advices

i'll continue this on the official thread on
http://community.stencyl.com/index.php/topic,19501.msg274571.html#msg274571
https://forums.tigsource.com/index.php?topic=30415

merrak

  • *
  • Posts: 2738
I got about 28FPS on the version with the background. I wasn't able to run the version hosted on Dropbox. Chrome attempts to download the SWF file every time I try to run it. I wonder how much the other activity on the DA page (animated images in the "also by this artist" block, etc.) might affect a comparison.

DELETED_117713

  • Posts: 771
It's possible to get a direct link to the Stencyl-hosted SFW on their page files if you download the page (In chrome, it's under "save page as", dunno about others) and open the HTML file with a text editor. When done, it loads the game with nothing blocking the page.

Links are usually follow this forumla. "http://static.stencyl.com/games/*numbers here and a swf*




airman4

  • Posts: 875
Ok guys like i said , if you want to follow discussion go here
http://community.stencyl.com/index.php?topic=19501.new;topicseen#new

I mostly get 30 fps on the build i make right now , i think the issue have been improved greatly especially when some people get 60 fps (nasa comp i guess haha )