Skip to content

Commit

Permalink
openni_pcd_recorder: Improve calculation of default buffer size.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Oberländer committed May 15, 2014
1 parent 0fc5ab8 commit 3d90a8d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions io/tools/openni_pcd_recorder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,10 @@ getTotalSystemMemory ()
return memory;
}

const int BUFFER_SIZE = int (getTotalSystemMemory () / (640 * 480));
const size_t BUFFER_SIZE = size_t (getTotalSystemMemory () / (640 * 480 * sizeof (pcl::PointXYZRGBA)));
#else

const int BUFFER_SIZE = 200;
const size_t BUFFER_SIZE = 200;
#endif

//////////////////////////////////////////////////////////////////////////////////////////
Expand Down

0 comments on commit 3d90a8d

Please sign in to comment.