Git Product home page Git Product logo

Comments (7)

GoogleCodeExporter avatar GoogleCodeExporter commented on August 12, 2024
Thanks for report. I don't have access to a Playbook anymore so "gut feel fix" 
coming up ...

Try commenting out line 85 from demo.entities.Sphere (the view priority).  Then 
compile and retest.  Does the problem persist?

This is a hunch based on your encountered frequency of slow down.

Original comment by [email protected] on 7 Jun 2012 at 4:34

  • Changed state: Started

from awe6.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 12, 2024
No the view priority doesn't change anything.
But I think I found the problem, as soon as I comment out Game.hx Line #87
 _timer.text = _tools.convertAgeToFormattedTime( _age );
it's running at at least 40fps, sometimes even up to 55fps.

That convertAgeToFormattedTime seems to really slow down things. Are is it 
changing the text-value?

Original comment by [email protected] on 7 Jun 2012 at 5:05

from awe6.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 12, 2024
Probably nothing to do with convertAgeToFormattedTime, and more to do with the 
_timer.text (a TextField) being redrawn.  Please verify by assigning:

_timer.text = Std.string( Std.random( 1000 ) );



Original comment by [email protected] on 7 Jun 2012 at 5:37

from awe6.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 12, 2024
Yes that's the problem. I've tested it before, but with a static string. Then 
the TextField seems not to be redrawn, but now with the random number it drops 
to 1fps again.

Original comment by [email protected] on 7 Jun 2012 at 5:41

from awe6.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 12, 2024
Try commenting out cacheAsBitmap line 84 of awe6.extras.gui.Text.

Original comment by [email protected] on 7 Jun 2012 at 6:14

from awe6.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 12, 2024
Yes, that helps. It's now nearly constant at 35 fps. Just dropped to 1fps once 
during the 30sec game.
Thank you!

Original comment by [email protected] on 9 Jun 2012 at 5:56

from awe6.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 12, 2024
This issue was closed by revision r441.

Original comment by [email protected] on 9 Jun 2012 at 6:06

  • Changed state: Fixed

from awe6.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.