scripthookvdotnet icon indicating copy to clipboard operation
scripthookvdotnet copied to clipboard

Calling natives directly in script thread

Open Sardelka9515 opened this issue 3 years ago • 0 comments

Add a clear and concise description of the feature you have in mind.

From what I've read, native functions currently work by dispatching it to main thread.

But is it really necessary? I've tried calling native directly from script thread using DllImport, and it seems to be working fine, as long as they're called during the "frame gap" (or Tick).

The idea is actually from @E66666666 (#992)

Sardelka9515 avatar Aug 16 '22 09:08 Sardelka9515