xna-cncnet-client icon indicating copy to clipboard operation
xna-cncnet-client copied to clipboard

Build cleanup, Large address aware

Open Rans4ckeR opened this issue 3 years ago • 2 comments

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:

  • https://github.com/Rampastring/Rampastring.Tools/pull/6
  • https://github.com/Rampastring/Rampastring.XNAUI/pull/18
  • https://github.com/CnCNet/cncnet-client-updater/pull/6

Rans4ckeR avatar Sep 20 '22 05:09 Rans4ckeR

Why enabling large address aware for the client?

SadPencil avatar Sep 22 '22 09:09 SadPencil

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.

Rans4ckeR avatar Sep 23 '22 22:09 Rans4ckeR