Tips for framerate ? [Fixed]

airman4

  • Posts: 875
I found something and i think it's nothing new but i'd share here
I have some problem issues on my pc trying my new game and tried many thing to make the framerate good 50/60 fps
I managed to do it by reducing apparently the number of LAYERS and BACKGROUND LAYERS
I never read that could be a framerate killer but apparently it is for me

Or maybe i'm mistaken ?
WHat do you guys think about it (and happy new year 2017 by the way )
Your games who are fluid have how many layers generally , i reduced to 19/20 ones

« Last Edit: January 13, 2017, 11:16:14 am by airman4 »

LIBERADO

  • *
  • Posts: 2720
I'm spanish, excuse me for my bad English.
I'm not a private teacher. Please, post your questions in the public forum.

airman4

  • Posts: 875
I know those and tried some techniques
But removing background layers and regulars layers seems more helping in my game

Bombini

  • *
  • Posts: 1401
I had perfoemance issues with bigger (bigger then screen) moving background layers. I replaced them with moving actors and that solved it. But i cannot give you further advice or say if that changed (was atleast 1 year ago).

Cheers!

airman4

  • Posts: 875
I see
My game is 1000*450 pixels , so it's kind of big
Before it was 1280*720 and it was kind of unplayable , now it seems constantly fluid and playable (way more than before )
I have removed as much background i can and i remove as much layers i can too

squeeb

  • Posts: 1617
anyone else get lower frame rates with flash player.. and higher frame rates in the flash browser?

airman4

  • Posts: 875
Kinda yeah
On flash player , it's a slideshow actually , it's like 3 fps
On browser it's a bit fluid for me , like 20 fps , i still can't reach 60 or 50 actually (i was mistaken )

Removing background kinda helps for me now , but still janky and 20 fps like

I keep  testing

SomeT

  • Posts: 143
You could try optimising at code level in haxe maybe?

airman4

  • Posts: 875
I dont know how to do this ? Any link , plz ?

merrak

  • *
  • Posts: 2738
Are you sure the bottleneck is in rendering and not in updates or collisions? How many layers do you still have?

airman4

  • Posts: 875
Edit
I just noticed something totally crazy

I spoke here and tried to look for Haxe infos , i didnt found and put the pc where i work my game on Hold , like i closed the Laptop
The game was running at like 20 fps , so i closed up the laptop

I did something else , and later after a 10 mn opened up again to try something
The game was running cause i just closened up and opened the laptop

THE GAME WAS RUNNING AT 60 FPS for like 2 MN O_O
And after something happened and the lag came back

I will do an export to see if people have 60 fps constant

I used google chrome

My computer is virus infected ? did you got this ? What is the cure for that
The game obviously can run 60 fps cause the drop wasnt initiated by something ingame i think
It looked like something external is playing backwards in my comp and kill performance

airman4

  • Posts: 875
Merrak
I dont know about hxScout
I'm checking it right now


airman4

  • Posts: 875
here is the video when i re-open the laptop , before lagg jumps in
Watch entire video PLEASE and check the fps monitor
https://www.youtube.com/watch?v=q4Xnit1bC7M&feature=youtu.be

it dips to 40/50 but i think it's because Bandicam
cause witouth it it's 60/60

After two fluid plays at 50/60 fps , the third starts as a joke one at 10 fps WTF

I also got to windwos feature and desactivated some
I think some windows feature jump in and start dips my whole computer or something


The game is reduced to
12 layers

merrak

  • *
  • Posts: 2738
I noticed the frame rate goes down as memory usage goes up. My first hunch would be it's related to the large images being loaded into the scene, but it's hard to tell without looking at something like hxScout output to pinpoint where in the loading process the lag occurs.

airman4

  • Posts: 875
Ok , quick help how to use hxscout ?
i'll eat and try that later , i have installed on my windows 10 laptop

Should i export the swf game before using it ?