That doesn't seem to be any different from calling NimMain through 
initializeHost above. Does NimMain need to be called per thread where the nim 
function is called? If that's the case somehow the Initialize and Tick 
functions on the C++ side could be on different threads because having the 
initialize check for NimMain done on the C++ side works.
    
    
    void UNimForUEEngineSubsystem::Tick(float DeltaTime)
    {
            if (!initialized)
            {
                    NimMain();
                    initialized = true;
            }
            elapsedSeconds += DeltaTime;
            if (elapsedSeconds > 0.1)
            {
                    checkReload();
                    elapsedSeconds = 0.0;
            }
    }
    
    
    Run

Reply via email to