log GPU info to simplify troubleshooting
This commit is contained in:
parent
6f9a1f1525
commit
ee4c88f601
|
@ -10,6 +10,7 @@
|
|||
## Upcoming release
|
||||
* For players:
|
||||
* SMAPI now ignores more content file types when detecting mods (`.doc`, `.docx`, `.rar`, and `.zip`).
|
||||
* Added trace log for GPU running the game to simplify troubleshooting some issues.
|
||||
* Fixed launcher's fallback logic on Linux when no compatible terminal was found (thanks to jlaw!).
|
||||
* Fixed rare crash when a mod adds/removes an event handler from an event handler.
|
||||
|
||||
|
|
|
@ -197,8 +197,12 @@ namespace StardewModdingAPI.Framework
|
|||
/// <summary>Load content when the game is launched.</summary>
|
||||
protected override void LoadContent()
|
||||
{
|
||||
// load content
|
||||
base.LoadContent();
|
||||
Game1.mapDisplayDevice = new SDisplayDevice(Game1.content, this.GraphicsDevice);
|
||||
|
||||
// log GPU info
|
||||
this.Monitor.Log($"Running on GPU: {this.GraphicsDevice?.Adapter?.Description ?? "<unknown>"}");
|
||||
}
|
||||
|
||||
/// <summary>Initialize just before the game's first update tick.</summary>
|
||||
|
|
Loading…
Reference in New Issue