FOpenGLBase::DiscardFrameBufferToResize

Calling glBufferData() to discard-reupload is slower than calling glBufferSubData() on some platforms, because changing glBufferData() with a different size (from before) may incur extra validation.

Windows
MacOS
Linux

References

Module

OpenGLDrv

Header

/Engine/Source/Runtime/OpenGLDrv/Public/OpenGL.h

Include

#include "OpenGL.h"

Syntax

static bool DiscardFrameBufferToResize()

Remarks

Calling glBufferData() to discard-reupload is slower than calling glBufferSubData() on some platforms, because changing glBufferData() with a different size (from before) may incur extra validation. To use glBufferData() discard trick: set to this to true - otherwise, glBufferSubData() will used.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss