CnCNet / xna-cncnet-client

XNA / MonoGame based client for playing classic Command & Conquer games both online and offline with a CnCNet game spawner.
Other
226 stars 87 forks source link

Build cleanup, Large address aware #374

Closed Rans4ckeR closed 1 year ago

Rans4ckeR commented 1 year ago

WindowsXNA default build change from x86 to AnyCPU (32-bit preferred). Both are 32bit but the latter enables the flag Large address aware.

Build dependency optimizations. Remove dependency on Microsoft.Windows.SDK.NET.dll (25MB) and WinRT.Runtime.dll by targeting net6.0-windows since we are unlikely to use WinRT functions.

Drop net48 target for UniversalGL, it's always net6.0. This enables running and debugging UniversalGL using WSL.

Update packages.

Prerequisites:

SadPencil commented 1 year ago

Why enabling large address aware for the client?

Rans4ckeR commented 1 year ago

Why enabling large address aware for the client?

64-bit programming for Game Developers:

It is a good practice to specify large-address-aware when building 32-bit applications, by using the linker flag /LARGEADDRESSAWARE, even if the application is not intended for a 64-bit platform, because of the advantages that are gained at no cost.