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:
Qing Tao
2021-06-25 11:45:07 -07:00
committed by GitHub
parent 185dfeb410
commit 9ccb65aac4
11 changed files with 63 additions and 204 deletions
@@ -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)
{