Performance extensions for video recording in Unity Engine.
To install the library, add the following to your project's manifest.json
file in the Packages
folder:
{
"scopedRegistries": [
{
"name": "NatML",
"url": "https://registry.npmjs.com",
"scopes": ["api.natsuite"]
}
],
"dependencies": {
"api.natsuite.ncpx": "0.0.3"
}
}
NCPX provides highly optimized recorder inputs that offer inexpensive pixel buffer readbacks from Texture
objects, and simultaneously offer multithreaded recording.
They can be used independently, or attached to a CameraInput
when recording game cameras:
// Create recorder and recording clock
var recorder = ...;
var clock = ...;
// Create a camera input
var cameraInput = new CameraInput(recorder, clock, cameras);
// Attach optimized texture input from NCPX to the camera input
cameraInput.textureInput = new GLESTextureInput(recorder, multithreading: true);
NCPX provides GLESTextureInput
for OpenGL ES3 on Android.
INCOMPLETE
INCOMPLETE
INCOMPLETE
- Unity 2019.2+
- NatCorder 1.8.0+
Thank you very much!