Skip to content
Permalink
Browse files

Fix command buffer, better logging

  • Loading branch information...
Kangz committed Feb 21, 2015
1 parent 4b90e61 commit 27ce34f4eb87a9519c5160a28ce830b8c98dd628
Showing with 3 additions and 2 deletions.
  1. +1 −0 src/engine/framework/CommandBufferHost.cpp
  2. +2 −2 src/gamelogic/shared/CommandBufferClient.cpp
@@ -61,6 +61,7 @@ namespace IPC {
}

void CommandBufferHost::Consume() {
buffer.LoadWriterData();
logs.Debug("Consuming up to %i data from buffer for %s", buffer.GetMaxReadLength(), name);
bool consuming = true;
//TODO set fixed bound too
@@ -38,7 +38,7 @@ namespace IPC {
CommandBufferClient::CommandBufferClient(std::string name)
: name(name),
bufferSize("vm." + name + "commandBuffer.size", "The size of the shared memory command buffer used by " + name, Cvar::NONE, DEFAULT_SIZE, MINIMUM_SIZE, 16 * 1024 * 1024),
logs(name + ".commandBuffer"), initialized(false) {
logs(name + ".commandBufferClient"), initialized(false) {
}

void CommandBufferClient::Init() {
@@ -97,7 +97,7 @@ namespace IPC {
}

void CommandBufferClient::Flush() {//TODO prevent recursion
logs.Debug("Flushing %s command buffer", name);
logs.Debug("Flushing %s command buffer with up to %i bytes", name, buffer.GetMaxReadLength());

VM::SendMsg<CommandBufferConsumeMsg>();
}

0 comments on commit 27ce34f

Please sign in to comment.
You can’t perform that action at this time.