Frequently Asked Questions
I don't see my UI in builds!
If you see your UI in the editor, but not your builds, make sure that the SDF shader is added to
the Always Included Shaders
of your Graphics Settings. Please see the
installation instructions.
Hey, calling a widget in FixedUpdate only shows it for 1 frame!
This is the correct behaviour, please see the Quickstart page for more details.
I can't display widgets from a Job thread or a C# thread.
A command buffer API has not been introduced yet to allow you to draw widgets from a separate job thread.
Linear Colorspace looks more contrasted than Gamma Colorspace.
The SDF shader implements the formula:
color = pow(color, 2.2)
If there is a better way to convert linear colorspace into gamma colorspace, do let me know.
I can't use the static API in a Job! You said it supports DOTS!
The workflow is to typically call the static API in an OnUpdate
loop. Native jobs support will come
in much later and requires that all calls handle unmanaged memory. Currently all primary windows
are managed objects, which is part of the reason why static APIs do not integrate nicely in
Jobs specifically.
If you have a workflow in mind, do let me know so I can understand the workflow and so I can figure out a solution to cover various cases.
WebGL is pretty slow, what can I do?
If WebGL is slow and disabling NimGui causes your game to speed up, I would recommend taking a look
at the memory settings in Edit -> Project Settings -> Player Settings -> Publishing Settings
.
Here are the following settings I used to help reduce how much WebGL was allocating and to improve performance:
- Initial Memory Size: 32
- Memory Growth Mode: Linear
- Maximum Memory Size: 2048
- Linear Memory Growth Step: 16
Your mileage may vary and I am having difficulty tracking down what settings are causing web to specifically slow down.
Where do I submit bug reports?
You can submit bug reports here: https://github.com/InitialPrefabs/nimgui/issues. You can also contact info at initialprefabs dot com for additional support.