Giter Site home page Giter Site logo

60 fps about monogame.forms HOT 8 CLOSED

blizzcrafter avatar blizzcrafter commented on May 27, 2024
60 fps

from monogame.forms.

Comments (8)

BlizzCrafter avatar BlizzCrafter commented on May 27, 2024 1

No problem.

There is already a note in the Readme.md file regarding the DrawIntervall. It sais:

Note: To raise the performance of an OpenGL UpdateWindow, it's recommended to change the DrawIntervall from 1ms to 50ms or 100ms!

But I will later add a note regarding DoubleBuffering too.

Thanks for reporting!

from monogame.forms.

BlizzCrafter avatar BlizzCrafter commented on May 27, 2024 1

Added Tips & Tricks / Dos & Don'ts section to the Readme.md file under the Building topic 83f677d

from monogame.forms.

BlizzCrafter avatar BlizzCrafter commented on May 27, 2024

Please turn off double buffering on the Forms containing an UpdateWindow control. The DirectX version of MonoGame.Forms renders differently than the OpenGL version in the moment.

from monogame.forms.

lofcz avatar lofcz commented on May 27, 2024

I'm using OpenGL version. Would switching to DX help with resolving of this issue?

from monogame.forms.

BlizzCrafter avatar BlizzCrafter commented on May 27, 2024

In either way you should turn off DoubleBuffering. You don't need it in MonoGame.Forms and it will cause flickering.

The DirectX library is deffinitley way faster in the moment. If you need a very good performance you should go with DirectX.

You could also improve performance on an OpenGL control by raising the DrawIntervall on a custom control via the PropertyWindow during design time.

from monogame.forms.

lofcz avatar lofcz commented on May 27, 2024

Thanks for your replies. I'd herebly suggest to add this note about DX/GL speed somewhere in the readme.md file. Cheers!

from monogame.forms.

lofcz avatar lofcz commented on May 27, 2024

I mean, I've read this note but at least for me it doesn't make clean that GL performance will be worse than DX, that should be, imho, noted.

from monogame.forms.

lofcz avatar lofcz commented on May 27, 2024

Edit2: After switching to DX I'm getting smooth 60 fps.

from monogame.forms.

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.