HaxeFlixel / HaxeFlixel/flixel

Jittering caused by sprite offsets

Open
#1,271 2 comments 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

One source of jittering not tackled by previous fixes is the fact that sprite offsets can cause graphics to be drawn at floats, even when the sprite itself is supposedly rendering at an integer.

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

No files, tests, or entry points are named. Start by reproducing the jitter with a sprite whose offset causes a fractional draw position, then trace the sprite rendering path to identify where offsets are applied. Done means sprite graphics render without jitter when the sprite position is integral, including cases with fractional effective offsets.

Written by the indexing model from the issue text.

Assessment

Domain
game-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.