Skip to content

Instantly share code, notes, and snippets.

/*UE4 Reported Values from Projection Matrices
DK2
[0.92991 0 0 0]
[0 0.75097 0 0]
[??? ??? 0 1]
[0 0 10 0]
CV1
[1.190342 0 0 0]
@getnamo
getnamo / Examples.cpp
Last active June 9, 2023 04:52
Long Running Async Lambdas, lock-free (UE4)
//Convenience Wrapper functions
//Using TaskGraph
FGraphEventRef RunLambdaOnGameThread(TFunction< void()> InFunction)
{
return FFunctionGraphTask::CreateAndDispatchWhenReady(InFunction, TStatId(), nullptr, ENamedThreads::GameThread);
}
FGraphEventRef RunLambdaOnAnyThread(TFunction< void()> InFunction)
{