pharo-project / pharo

Pharo is a dynamic reflective pure object-oriented language supporting live programming inspired by Smalltalk.
http://pharo.org
Other
1.21k stars 355 forks source link

Inconsistent frame rate with Morphic when stepTime is low and the mouse moves #3819

Closed mdabidullah closed 4 years ago

mdabidullah commented 5 years ago

Hi, I've been trying to animate things with Morphic and have noticed that at higher framerates, inconsistencies start to appear.

A simple example:

Morph subclass: #MovingMorph
    instanceVariableNames: ''
    classVariableNames: ''
    category: 'MovingMorph'

    stepTime
        ^ 20

    step
        self position: self position + (1@1)

When the mouse moves, the movement of the Morph is affected. The effect becomes more pronounced when animating complex drawings. This phenomena is present in Athens and Bloc, and as both of those are rendered on Morphic, I assume the problem is in Morphic.

welcome[bot] commented 5 years ago

Thanks for opening your first issue! Please check the CONTRIBUTING documents for some tips about which information should be provided. You can find information of how to do a Pull Request here: https://github.com/pharo-project/pharo/wiki/Contribute-a-fix-to-Pharo

GitHub
pharo-project/pharo
The Sources for Pharo. Contribute to pharo-project/pharo development by creating an account on GitHub.
stale[bot] commented 4 years ago

To limit bug bankruptcy (see https://www.joelonsoftware.com/2012/07/09/software-inventory/) this issue has been automatically marked as stale because it has not had any activity in 6 months. If no further activity occurs, it might be closed. If this issue remains important to you, please comment to reactivate the issue. Thank you for your contributions.

Joel on Software
Software Inventory
Imagine, for a moment, that you came upon a bread factory for the first time. At first it just looks like a jumble of incomprehensible machinery with a few people buzzing around. As your eyes adjus…