Git Product home page Git Product logo

Comments (7)

KonajuGames avatar KonajuGames commented on May 23, 2024

Sounds similar to device reset issues we used to deal with on Windows prior to DirectX10. We may have to reload textures and other affected assets on resume. This should be trivial for assets loaded through the ContentManager as we have a list of them and their asset names. Assets created by the developer outside of the ContentManager will need to be manually reloaded or recreated by the developer. This is what the GraphicsDevice.DeviceReset event is intended for. ContentManager could attach an event handler to this event so that assets loaded by that ContentManager are automatically reloaded as required. Alternatively, each Texture2D and other affected assets attach their own event handler when they are created so the objects reload themselves.

from monogame.

dellis1972 avatar dellis1972 commented on May 23, 2024

Sly, any chance you could take this issue on? I'm going to be looking at the various Orientation issues we had at the moment and a Texture Rectangle issue as well.

from monogame.

KonajuGames avatar KonajuGames commented on May 23, 2024

Sure

from monogame.

zdman2022 avatar zdman2022 commented on May 23, 2024

What's the status on this? I'm about to tackle device reset for the FRB engine. I was going to reload everything in our ContentManager. The problem with doing it through the engine is it should be done asynchronously otherwise it will freeze the game.

from monogame.

dellis1972 avatar dellis1972 commented on May 23, 2024

Im not sure anything has been done with this si feel free to investigate :-)
On Jan 17, 2012 3:57 PM, "sdancer" <
[email protected]>
wrote:

What's the status on this? I'm about to tackle device reset for the FRB
engine. I was going to reload everything in our ContentManager. The
problem with doing it through the engine is it should be done
asynchronously otherwise it will freeze the game.


Reply to this email directly or view it on GitHub:
#165 (comment)

from monogame.

KonajuGames avatar KonajuGames commented on May 23, 2024

Thank you for looking at that. The submitted fix appears to be fine.

from monogame.

dellis1972 avatar dellis1972 commented on May 23, 2024

The fix seems to have fixed the issue, nice work sdancer :)

from monogame.

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.