December 14, 2017, 06:50:40 PM

Author Topic: First frame of scene has 0 layers  (Read 409 times)


  • Newbie
  • *
  • Posts: 4
    • View Profile
First frame of scene has 0 layers
« on: March 06, 2017, 03:10:02 PM »
Hello world,

I noticed that when you switch scene (HXP.scene = new YourScene()) There is a "flash" where you see just the background colour for one frame. And then the scene renders. If you add this trace:


To Scene.hx render() function line 160, then when you change scene you can see that there are 0 layers for the first frame.

This flashing gets annoying when your game has multiple little levels.

Not quite sure what the best fix for this will be... Trying not to render a frame if the layers are 0.


  • Global Moderator
  • Jr. Member
  • *****
  • Posts: 86
    • View Profile
Re: First frame of scene has 0 layers
« Reply #1 on: March 11, 2017, 12:27:44 PM »
Thanks for reporting. I opened an issue on github: