HaxeFlixel / HaxeFlixel/flixel
Large texture entering the camera freezes the game for a few instants
Nobody has claimed this yet.
- Dominant language
- Haxe
- Stars
- 2.2k
- Forks
- 522
- Avg merge
- 34m
- Merged PRs (30d)
- 1
Description
- Haxe version: 3.4.0
- Flixel version: 4.3.0
- OpenFL version: 3.6.1
- Lime version: 2.9.1
- Affected targets: windows
Code snippet reproducing the issue:
Uploaded test demo: https://www.dropbox.com/s/v4839sn0xbyx6l1/testBigTexture.rar?dl=0
Video: https://www.dropbox.com/s/dih4lekhem5yh0r/2017-09-06%2017-31-26.flv?dl=0
Observed behavior:
When the sprite that has a large texture enters on screen for the first time the game slows down for a few instants. You can see the stats on the video that shows the framerate drop:
http://puu.sh/xtdb9/57b1415232.jpg
After that, the game keeps working normally.
Expected behavior:
I expect the framerate not to drop the first time the sprite appears on the screen.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by running the linked test demo with HaxeFlixel 4.3.0, OpenFL 3.6.1, Lime 2.9.1, and the Windows target, then profile the first time the large-texture sprite enters the screen. Compare the initial frame-time spike with later appearances; done means the first appearance no longer causes the reported freeze or framerate drop.
Written by the indexing model from the issue text.
Assessment
- Domain
- game-dev, performance
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100