Comments (7)
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.
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.
Sure
from monogame.
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.
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.
Thank you for looking at that. The submitted fix appears to be fine.
from monogame.
The fix seems to have fixed the issue, nice work sdancer :)
from monogame.
Related Issues (20)
- Content.mgcb is not opening on macOS Sonoma HOT 1
- macOS and Linux setup experience HOT 3
- Vector2.Normalize should do a zero division check if the input vector is (0, 0) HOT 4
- Repair WindowsDX tests HOT 4
- Empty Queue Crash in DynamicSoundEffectInstance.PlatformUpdateQueue() HOT 6
- TestFailure: TestMergePositionsMultipleGeometries - Index was outside the bounds of the array. HOT 1
- MGCB editor fails with a parsing error in latest "develop" HOT 5
- Feature Request: Resolve Missing XML For Public Type Warnings HOT 4
- unmanaged callers only HOT 4
- Project Template Type Table Documentation URLs need to be updated HOT 2
- [PAID BOUNTY] [LOCKED] Switch the console runtime from BRUTE to NativeAOT HOT 4
- [PAID BOUNTY] [LOCKED] Implement the Direct3D 12 / GDK/GDKX backend HOT 1
- NoSuitableGraphicsDeviceException on Virtual Machine HOT 2
- PathHelper.GetRelativePath potential bugs HOT 2
- Issue with GetData/SetData as of 2024 HOT 2
- `DrawableGameComponent.Initialize` Does Not Behave How XNA Documentation Describe It HOT 1
- [PAID BOUNTY] [LOCKED] Package up ffmpeg and ffprobe HOT 10
- [PAID BOUNTY][LOCKED] A shared base for public and console repos
- AL lib throws unclosed device warning on proper game exit HOT 4
- Variable rate shading HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from monogame.