Release Notes


Nsight Tegra, Visual Studio Edition 3.5

New Features:

Fixed Issues:

General

Other Changes

Known Issues: 

Java Out of Memory

On some systems, ANT will report a memory error when building inside of Visual Studio. You may encounter the following error: 

Could not create the Java virtual machine.
Error occurred during initialization of VM
Could not reserve enough space for object heap

In this case, try restarting your web browser; it has been known to help in some cases.

Other Known Issues: 

FAQ 

Correcting a broken Ant build 

Recent releases of Nsight Tegra have made the following changes: 

Nsight Tegra has its own proprietary build.xml — named nsight_tegra_build.xml — that runs before the build.xml, and sets properties from within Visual Studio’s project properties. There are two reasons for doing this: 

  1. With ANT, the first variable set is the one that is used in both .properties and build.xml files.
  2. Most users' default files come from samples, and already have set properties. This works around options the user may have changed.

To work around this issue and get your forced overrides back in, you would take advantage of these lines that we auto-generate: 

<import file="<path>\nsight_tegra_build_overrides_<config>.xml" optional="true" />
<import file="<path>\nsight_tegra_build_overrides.xml" optional="true" />

The first line allows you to do config-specific overrides; the second line contains shared overrides.

From here, you would set your properties, making sure to get the paths you set up in Visual Studio.

For reference, here is a snip of the actual properties that are overridden.

REGION-BEGIN: The following properties prevent Nsight Tegra from needing to modify user property files. 
Setting them here will ensure they always match Visual Studio and allows users to build without needing to check out version controlled files.-->
<property name="sdk.dir" value="C:\NVPACK\android-sdk-windows" />
<property name="target" value="android-15" />
<property name="source.dir" value="src" />
<!--REGION-END-->
<!--
REGION-BEGIN: The following properties prevent Nsight Tegra from needing to modify user manifest files.
Setting them here will ensure they always match Visual Studio and allows users to build without needing to check out version controlled files.-->
<property name="manifest.file" value="C:\<path>\nsight_tegra_manifest.xml" />
<property name="manifest.abs.file" value="C:\<path>\nsight_tegra_manifest.xml" />
<!--REGION-END-->
<!--
REGION-BEGIN: The following properties allow Nsight Tegra to maintain build results per-configuration (debug, release, etc).-->
<property name="gen.absolute.dir" value="C:\<path>\Tegra-Android\Debug\gen" />
<property name="out.dir" value="C:\<path>\Tegra-Android\Debug\bin" />
<property name="jar.libs.dir" value="C:\<path>\Tegra-Android\Debug\libs" />
<property name="native.libs.absolute.dir" value="C:\<path>\Tegra-Android\Debug\libs" />
<target name="-pre-compile">
<path id="project.all.jars.path">
<path path="${toString:project.all.jars.path}">
<fileset dir="${jar.libs.dir}">
<include name="*.jar" />
</fileset>
</path>
</path>
</target>
<!--REGION-END-->
<!--
Reference in original document.-->
<import file="C:\<path>\build.xml" />
</project>

 


NVIDIA® GameWorks™ Documentation Rev. 1.0.211026 ©2014-2021. NVIDIA Corporation and affiliates. All Rights Reserved.