33// SPDX-License-Identifier: MIT
44
55using System ;
6+ using System . Globalization ;
67using System . IO ;
78using System . Numerics ;
9+ using System . Runtime ;
810using System . Runtime . InteropServices ;
911using Box2D . NET . Samples . Helpers ;
1012using ImGuiNET ;
@@ -62,6 +64,23 @@ public int Run(string[] args)
6264
6365 SampleFactory . Shared . LoadSamples ( ) ;
6466 SampleFactory . Shared . SortSamples ( ) ;
67+
68+ var currentCulture = CultureInfo . CurrentCulture ;
69+ string bitness = Environment . Is64BitOperatingSystem ? "64-bit" : "32-bit" ;
70+
71+ var workingDirectory = Directory . GetCurrentDirectory ( ) ;
72+ Logger . Information ( $ "Working directory - { workingDirectory } ") ;
73+ Logger . Information ( $ "OS Version - { Environment . OSVersion } { bitness } ") ;
74+ Logger . Information ( $ "{ RuntimeInformation . OSArchitecture } { RuntimeInformation . OSDescription } ") ;
75+ Logger . Information ( $ "{ RuntimeInformation . ProcessArchitecture } { RuntimeInformation . FrameworkDescription } ") ;
76+ Logger . Information ( $ "Dotnet - { Environment . Version . ToString ( ) } culture({ currentCulture . Name } )") ;
77+ Logger . Information ( $ "Processor Count : { Environment . ProcessorCount } ") ;
78+
79+ Logger . Information ( $ "Server garbage collection : { ( GCSettings . IsServerGC ? "Enabled" : "Disabled" ) } ") ;
80+ Logger . Information ( $ "Current latency mode for garbage collection: { GCSettings . LatencyMode } ") ;
81+ Logger . Information ( "" ) ;
82+
83+ Logger . Information ( $ "ImGui.Net - version({ ImGui . GetVersion ( ) } )") ;
6584
6685 Window . PrioritizeGlfw ( ) ;
6786
@@ -79,13 +98,13 @@ public int Run(string[] args)
7998 _context . glfw . WindowHint ( WindowHintInt . ContextVersionMinor , 3 ) ;
8099 _context . glfw . WindowHint ( WindowHintBool . OpenGLForwardCompat , true ) ;
81100 _context . glfw . WindowHint ( WindowHintOpenGlProfile . OpenGlProfile , OpenGlProfile . Core ) ;
82-
101+
83102 // MSAA
84103 _context . glfw . WindowHint ( WindowHintInt . Samples , 4 ) ;
85104 options . Samples = 4 ;
86105
87106 B2Version version = b2GetVersion ( ) ;
88- options . Title = $ "Box2D.NET Version { version . major } .{ version . minor } .{ version . revision } ";
107+ options . Title = $ "Box2D.NET Version { version . major } .{ version . minor } .{ version . revision } , { RuntimeInformation . FrameworkDescription } { RuntimeInformation . ProcessArchitecture } ";
89108
90109 unsafe
91110 {
0 commit comments