Move OpenGL frame to ARGB conversion to processing threads Move video exporting to processing threads Skip creation of BufferedImage and instead use ByteBuffer with ARGB content directly
17 lines
534 B
Java
17 lines
534 B
Java
package eu.crushedpixel.replaymod.video.capturer;
|
|
|
|
import eu.crushedpixel.replaymod.video.frame.OpenGlFrame;
|
|
|
|
public class SimpleOpenGlFrameCapturer extends OpenGlFrameCapturer<OpenGlFrame, CaptureData> {
|
|
|
|
public SimpleOpenGlFrameCapturer(WorldRenderer<CaptureData> worldRenderer, RenderInfo renderInfo) {
|
|
super(worldRenderer, renderInfo);
|
|
}
|
|
|
|
@Override
|
|
public OpenGlFrame process() {
|
|
float partialTicks = renderInfo.updateForNextFrame();
|
|
return renderFrame(framesDone++, partialTicks);
|
|
}
|
|
}
|