summaryrefslogtreecommitdiff
path: root/src/SMAPI/Framework
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2020-07-25 15:50:36 -0400
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2020-07-25 15:50:36 -0400
commitee4c88f6016b6bc0d72e0d459f6b918bdd7728f3 (patch)
tree219c88a0d4414f1c4fabef862771373f1b690f36 /src/SMAPI/Framework
parent6f9a1f1525331db3c9fc089e98193e082add3329 (diff)
downloadSMAPI-ee4c88f6016b6bc0d72e0d459f6b918bdd7728f3.tar.gz
SMAPI-ee4c88f6016b6bc0d72e0d459f6b918bdd7728f3.tar.bz2
SMAPI-ee4c88f6016b6bc0d72e0d459f6b918bdd7728f3.zip
log GPU info to simplify troubleshooting
Diffstat (limited to 'src/SMAPI/Framework')
-rw-r--r--src/SMAPI/Framework/SGame.cs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/SMAPI/Framework/SGame.cs b/src/SMAPI/Framework/SGame.cs
index 4d310185..4dd73485 100644
--- a/src/SMAPI/Framework/SGame.cs
+++ b/src/SMAPI/Framework/SGame.cs
@@ -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>