|
|
há 4 meses atrás | |
|---|---|---|
| .. | ||
| .config | há 4 meses atrás | |
| .vscode | há 4 meses atrás | |
| Core | há 4 meses atrás | |
| Platforms | há 4 meses atrás | |
| PerformanceMeasuring.sln | há 4 meses atrás | |
| README.md | há 4 meses atrás | |
This is a MonoGame 3.8.* sample project that demonstrates how to use the GameDebugTools to measure the performance of a game, as well as how the number of objects and interactions between them can affect performance.
The solution is organized into platform-specific projects and a shared core library:
Each platform project references the shared Core project and includes only platform-specific entry points and configuration.
dotnet workload install android)dotnet build Platforms/Windows/PerformanceMeasuring.Windows.csproj
dotnet run --project Platforms/Windows/PerformanceMeasuring.Windows.csproj
dotnet build Platforms/DesktopGL/PerformanceMeasuring.DesktopGL.csproj
dotnet run --project Platforms/DesktopGL/PerformanceMeasuring.DesktopGL.csproj
dotnet build Platforms/Android/PerformanceMeasuring.Android.csproj
dotnet build Platforms/iOS/PerformanceMeasuring.iOS.csproj
Open PerformanceMeasuring.sln in Visual Studio and build/run the desired platform project.
The project includes VS Code tasks and launch configurations:
Build tasks (Ctrl+Shift+P → "Tasks: Run Task"):
build-windows - Build Windows versionbuild-desktopgl - Build DesktopGL versionbuild-android - Build Android versionclean - Clean all projectsRun/Debug (F5):
This project uses pre-built .xnb content files located in the Content/ folder. No Content Pipeline rebuild is required.
The sample includes several debug tools:
Use these tools to observe how increasing the number of spheres and enabling/disabling collisions affects performance.