removing performance counters

This commit is contained in:
sam gateau 2018-09-07 15:35:10 -07:00
parent fa72910ac1
commit 9350d6f36e
3 changed files with 1 additions and 8 deletions

View file

@ -259,7 +259,6 @@ void GLBackend::updateInput() {
// Profile the count of buffers to update and use it to short cut the for loop
int numInvalids = (int) _input._invalidBuffers.count();
_stats._ISNumInputBufferChanges += numInvalids;
PROFILE_COUNTER_IF_CHANGED(render_gpu, "numInputBuffersbound", int, numInvalids);
for (GLuint buffer = 0; buffer < _input._buffers.size(); buffer++, vbo++, offset++, stride++) {
if (_input._invalidBuffers.test(buffer)) {

View file

@ -80,10 +80,7 @@ void GL41Backend::updateInput() {
auto& inputChannels = _input._format->getChannels();
int numInvalids = (int)_input._invalidBuffers.count();
_stats._ISNumInputBufferChanges += numInvalids;
// Profile the count of buffers to update
PROFILE_COUNTER_IF_CHANGED(render_gpu, "numInputBuffersbound", int, numInvalids);
GLuint boundVBO = 0;
for (auto& channelIt : inputChannels) {
const Stream::Format::ChannelMap::value_type::second_type& channel = (channelIt).second;

View file

@ -36,7 +36,6 @@ void GL45Backend::updateInput() {
_input._lastUpdateStereoState = isStereoNow;
if (_input._invalidFormat) {
PROFILE_RANGE(render_gpu, "bindInputFormat");
InputStageState::ActivationCache newActivation;
// Assign the vertex format required
@ -136,7 +135,6 @@ void GL45Backend::updateInput() {
// Profile the count of buffers to update and use it to short cut the for loop
int numInvalids = (int) _input._invalidBuffers.count();
_stats._ISNumInputBufferChanges += numInvalids;
PROFILE_COUNTER_IF_CHANGED(render_gpu, "numInputBuffersbound", int, numInvalids);
auto numBuffers = _input._buffers.size();
for (GLuint buffer = 0; buffer < numBuffers; buffer++, vbo++, offset++, stride++) {
@ -149,7 +147,6 @@ void GL45Backend::updateInput() {
}
}
_input._invalidBuffers.reset();
(void)CHECK_GL_ERROR();
}