Skip to content

[BUGFIX] Fix FPS drop from the "Y" title screen easter egg - #7913

Open
kiryvajiravuth wants to merge 1 commit into
FunkinCrew:preview/public-playtestfrom
kiryvajiravuth:y
Open

[BUGFIX] Fix FPS drop from the "Y" title screen easter egg#7913
kiryvajiravuth wants to merge 1 commit into
FunkinCrew:preview/public-playtestfrom
kiryvajiravuth:y

Conversation

@kiryvajiravuth

Copy link
Copy Markdown
Contributor

Linked Issues

closes #7830

Description

Pressing Y on the title screen used to run two infinite PINGPONG tweens directly against FlxG.stage.window.x/y. At an uncapped framerate the tween steps every frame so the native OS window was being repositioned thousands of times per second causing a massive FPS drop (2000+ > 500-) and visible stutter.

The wobble itself is now driven by the same easing/PINGPONG setup but on a dummy FlxPoint instead of the real window. The actual OS window is only moved at a capped rate (max 60 times/sec) via a time accumulator which keeps the easter egg's infinite wobble while removing the per-frame native window churn.

Screenshots/Videos

before :

before.mp4

after :

after.mp4

@github-actions github-actions Bot added pr: haxe PR modifies game code. status: pending triage Awaiting review. size: medium A medium pull request with 100 or fewer changes. labels Aug 11, 2026

@AnimatingLegend AnimatingLegend left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Image

it indeed works!!! :whatthehappy:

@NotHyper-474 NotHyper-474 added the type: optimization Involves a performance issue or a bug which causes lag. label Aug 11, 2026
@Hundrec
Hundrec self-requested a review August 11, 2026 16:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr: haxe PR modifies game code. size: medium A medium pull request with 100 or fewer changes. status: pending triage Awaiting review. type: optimization Involves a performance issue or a bug which causes lag.

Development

Successfully merging this pull request may close these issues.

Bug Report: The "Y" Title Screen easter egg significantly drops FPS and makes the window stutter

4 participants