GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Removing equality sign from _accumulator in FlxGame by winterismute · Pull Request #202 · FlixelCommunity/flixel

Conversation

@winterismute

@winterismute winterismute commented Mar 16, 2014

Copy link
Copy Markdown

Hi! As far as I know, this is a known fix for the FlxGame class. Removing the equality sign prevents some frames from being erroneously skipped, and could result in smoother games.
I was wondering: why is it not in the updated community version?
Also, I know that what I am going to do is extremely but practice, but: I have also issues this pool requests for the power tools, which are also maintained by this account: FlixelCommunity/Flixel-Power-Tools#22
Although probably the FPT are not so used anymore, those bugs are pretty big, so it would be cool if someone could merge them and prevent characters from moving at huge speeds with no reason :D
Thank you in advance, I promise I will work on some scheduled issue next time!

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@winterismute
This is a known fix for the FlxGame class. Removing the equality sign…
b936696
… prevents some frames from being erroneously skipped, and could result in smoother games.
@WingEraser

WingEraser commented Mar 17, 2014

Copy link
Copy Markdown

#32

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@Dovyski

Dovyski commented Mar 19, 2014

Copy link
Copy Markdown
Member

Hi there! First of all every contribution is always welcome, no need to work on a scheduled issue :)

About your pull request, as @WingEraser mentioned, you didn't include that in that last release because there was not enough testing. You could just change the <= part, but we must check everything first.

Regarding your Flixel Power Tools pull, that's awesome! We haven't decided quite yet how to work and maintain FPT. For now your pull request will remain the waiting queue until we discuss and plan the next steps.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@winterismute

winterismute commented Mar 19, 2014

Copy link
Copy Markdown
Author

Hi again!
Well, it's really a minority anyway... I have read the issue referenced but it does not really say much, in general the idea is that you don't want to "step" twice or more unless is very necessary (you need the simulation to catch-up with the real time), and suppose that updating and drawing take the exact time, you can end up calling an extra step often while instead you would like to call immediately a draw to "push" immediately a frame.

For the FPT, I think they are pretty useful. If you decide to maintain them, I think that commit (or an improved version of it :D) should be in - those bugs are just crazy.
Hope I can help with something more in the future.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@IQAndreas IQAndreas added improvement labels Apr 5, 2014
@IQAndreas IQAndreas added this to the Future release milestone May 1, 2014
@DigiEggz

DigiEggz commented Jun 2, 2016

Copy link
Copy Markdown

I can confirm that a frame-by-frame analysis shows big improvements to scrolling smoothness just by removing that pesky equality sign.

Even before I tested each frame, there was a very visible sort of jerking or heaving motion that background sprites make about every second when moving left/right at a constant speed. After removing the equality sign, the problem goes away immediately.

I've also been testing this fix for over a year now and I haven't experienced any negative effects from this change.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

improvement needs verifying pull request

Projects

None yet

Milestone

Future release

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

5 participants

@winterismute @WingEraser @Dovyski @DigiEggz @IQAndreas
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.