HaxeFlixel / HaxeFlixel/flixel

Cache transformation calculation results

Open
#2,007 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Haxe
Stars
2.2k
Forks
522
Avg merge
34m
Merged PRs (30d)
1

Description

we need to find the way to cache transformation calculation results, which could improve perfomance due to less calculations done at each frame.
as you can see here: https://github.com/Beeblerox/flixel-spine-hx/blob/transform-sprite/source/flixel/addons/display/FlxTransformableSprite.hx#L65-L123 there are a lot of repetative calculations. and they should be reduced as much as possible.
But having multiple camera support making it harder to achieve (but not impossible i think)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with source/flixel/addons/display/FlxTransformableSprite.hx, especially lines 65-123 in the linked branch, and inspect the repeated transformation calculations. Determine how cached results could work with multiple camera support; done means reducing per-frame recalculation without breaking that support.

Written by the indexing model from the issue text.

Assessment

Domain
game-dev, performance
Issue type
Refactor
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.