Don't log entire GPU detection errors
This commit is contained in:
@@ -233,13 +233,13 @@ public abstract class ClientLauncher extends ApplicationCore implements Platform
|
||||
if(assets.update(1000 / loadingFPS)){
|
||||
loader.dispose();
|
||||
loader = null;
|
||||
Log.info("Total time to load: @ms", Time.timeSinceMillis(beginTime));
|
||||
for(ApplicationListener listener : modules){
|
||||
listener.init();
|
||||
}
|
||||
mods.eachClass(Mod::init);
|
||||
finished = true;
|
||||
Events.fire(new ClientLoadEvent());
|
||||
Log.info("Total time to load: @ms", Time.timeSinceMillis(beginTime));
|
||||
clientLoaded = true;
|
||||
super.resize(graphics.getWidth(), graphics.getHeight());
|
||||
app.post(() -> app.post(() -> app.post(() -> app.post(() -> {
|
||||
|
||||
@@ -21,7 +21,7 @@ public class GpuDetect{
|
||||
hasNvidia = rawGpuString.toLowerCase(Locale.ROOT).contains("nvidia");
|
||||
hasAMD = rawGpuString.toLowerCase(Locale.ROOT).contains("amd") || rawGpuString.toLowerCase(Locale.ROOT).contains("radeon");
|
||||
}catch(Exception e){
|
||||
Log.err(e);
|
||||
Log.err("Failed to detect GPU type. This is not a fatal error, but if you are using a Intel GPU, it may result in rare graphical issues.", Strings.getSimpleMessage(e));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user