ATOM-15859 AuxGeom rendering in editor is too expensive (#1582)
* ATOM-15859 AuxGeom rendering in editor is too expensive - The OrphanBuffer calls is the main reason that AuxGeom FP render is slow. - Switched to use DynamicBuffer for buffers used in DynamicPrimitiveProcessor - Added some profiling marks. - Removed DynamicPrimitiveProcessor per view which was added because of OrphanBuffer can only be called once per frame.
This commit is contained in:
@@ -12,7 +12,7 @@ namespace AZ
|
||||
{
|
||||
namespace RPI
|
||||
{
|
||||
bool DynamicBuffer::Write(void* data, uint32_t size)
|
||||
bool DynamicBuffer::Write(const void* data, uint32_t size)
|
||||
{
|
||||
if (m_size >= size)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user