Bug Issue: Rendering Call Buildup, Resulting in Big GC Frame Drop


Pages: 1

Akemi

  • Junior Stencyler
January 29, 2021, 12:57:38 pm
   I've found that on desktop (specifically Windows, I haven't been able to test any other desktop platform) even in a blank game with a single movable actor, there are periodic, very large freezes, coming from a bunch of rendering calls being collected. The three big calls being collected are:
Code: [Select]
openfl.Vector.ObjectVector.iterator

openfl._internal.renderer.context3D.Context3DRenderer._renderDisplayObjectContainer

openfl.display.Stage._onLimeRender
  Luyren ran my test on his device, and while he says he also experienced the frame drops, he didn't notice the freezes.

  This is making it difficult to develop, since large full-second freezes aren't exactly acceptable. I can combat it slightly by forcing garbage collection very often, but once a game gets anything really going in it, this slows everything down.

  I've attached the test .stencyl file I sent on Discord for ease of access.
« Last Edit: January 29, 2021, 02:54:27 pm by Akemi »


New attachment added by Akemi - January 29, 2021, 02:53:42 pm


Akemi

  • Junior Stencyler
February 11, 2021, 12:46:28 pm
  I've done some further testing on 4.0.1 and 4.0.2.

  4.0.1 doesn't use Context3DRenderer, and doesn't have the freezes.

  4.0.2 does use Context3DRenderer, and does have the freezes.

  Luyren tested 4.0.4 again, on both the public build and private build, and found that his previous test had been a false negative: both builds have the freezes present.


Justin

  • Master Stencyler
  • *
April 04, 2021, 06:36:18 pm
IIRC OpenFL reworked its rendering stack again recently, so once we pull in those updates with Stencyl 4.1.0, we'll see if the problem persists.
  • Tags added: 4.1.x


Pages: 1

Details

  • Reported
    January 29, 2021, 12:57:38 pm
  • Updated
    April 04, 2021, 06:36:18 pm

  • View Status
    Public
  • Type
    Bug
  • Status
    New
  • Priority
    Normal
  • Version
    (none)
  • Fixed in
    (none)
  • Assigned to
    (none)
  • Category
    Engine

Tags


Attachments

* GC Test.stencyl (386.22 kB - downloaded 197 times.)