Closed Bug 2028126 Opened 6 months ago Closed 6 months ago

Optimise longfox draw code

Categories

(Firefox for Android :: Tooling, task)

All
Android
task

Tracking

()

RESOLVED FIXED
151 Branch
Tracking Status
firefox151 --- fixed

People

(Reporter: polly, Unassigned)

References

(Blocks 1 open bug)

Details

(Whiteboard: [fxdroid][group6])

Attachments

(1 file)

Looking for ways to speed up the game, it can get a big laggy as the fox grows long.

  • The draw code in DrawFoxBody.kt is doing some calculations which could be hoisted up and remembered so we only compute the body state once per game tick.
  • Should also create and reuse a Path rather than making a new one each time
Status: NEW → RESOLVED
Closed: 6 months ago
Resolution: --- → FIXED
Target Milestone: --- → 151 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: