Subversion Repository Public Repository

Divide-Framework

This repository has no backups
This repository's network speed is throttled to 100KB/sec

Diff Revisions 787 vs 788 for /trunk/Source Code/Platform/Video/Headers/GFXDevice.h

Diff revisions: vs.
  @@ -49,6 +49,7 @@
49 49 #include "Rendering/RenderPass/Headers/RenderPassCuller.h"
50 50
51 51 #include <stack>
52 + #include <ArenaAllocator/arena_allocator.h>
52 53
53 54 namespace Divide {
54 55
  @@ -328,6 +329,8 @@
328 329
329 330 inline I32 getDrawCallCount() const { return FRAME_DRAW_CALLS_PREV; }
330 331
332 + inline Arena::Statistics getObjectAllocStats() const { return _gpuObjectArena.statistics_; }
333 +
331 334 inline void registerDrawCall() { registerDrawCalls(1); }
332 335
333 336 inline void registerDrawCalls(U32 count) { FRAME_DRAW_CALLS += count; }
  @@ -336,9 +339,6 @@
336 339
337 340 inline RenderStage setRenderStage(RenderStage stage);
338 341
339 - static void computeFrustumPlanes(const mat4<F32>& invViewProj, vec4<F32>* planesOut);
340 - static void computeFrustumPlanes(const mat4<F32>& invViewProj, Plane<F32>* planesOut);
341 -
342 342 public:
343 343 IMPrimitive* newIMP() const;
344 344 VertexBuffer* newVB() const;
  @@ -507,9 +507,12 @@
507 507 ShaderBuffer* _gfxDataBuffer;
508 508 GenericDrawCommand _defaultDrawCmd;
509 509
510 - GenericCommandPool _commandPool;
510 + GenericCommandPool _commandPool;
511 511 Time::ProfileTimer& _commandBuildTimer;
512 512
513 + mutable std::mutex _gpuObjectArenaMutex;
514 + mutable MyArena<Config::REQUIRED_RAM_SIZE / 4> _gpuObjectArena;
515 +
513 516 END_SINGLETON
514 517
515 518 namespace Attorney {