mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-04 20:06:41 +01:00
Kill warning.
This commit is contained in:
parent
2356e5c0e7
commit
ed90feb2b4
@ -9,7 +9,7 @@ PerfQuery::PerfQuery()
|
|||||||
: m_query_read_pos()
|
: m_query_read_pos()
|
||||||
, m_query_count()
|
, m_query_count()
|
||||||
{
|
{
|
||||||
for (int i = 0; i != ARRAYSIZE(m_query_buffer); ++i)
|
for (u32 i = 0; i != ARRAYSIZE(m_query_buffer); ++i)
|
||||||
glGenQueries(1, &m_query_buffer[i].query_id);
|
glGenQueries(1, &m_query_buffer[i].query_id);
|
||||||
|
|
||||||
ResetQuery();
|
ResetQuery();
|
||||||
@ -17,7 +17,7 @@ PerfQuery::PerfQuery()
|
|||||||
|
|
||||||
PerfQuery::~PerfQuery()
|
PerfQuery::~PerfQuery()
|
||||||
{
|
{
|
||||||
for (int i = 0; i != ARRAYSIZE(m_query_buffer); ++i)
|
for (u32 i = 0; i != ARRAYSIZE(m_query_buffer); ++i)
|
||||||
glDeleteQueries(1, &m_query_buffer[i].query_id);
|
glDeleteQueries(1, &m_query_buffer[i].query_id);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -26,7 +26,7 @@ private:
|
|||||||
};
|
};
|
||||||
|
|
||||||
// when testing in SMS: 64 was too small, 128 was ok
|
// when testing in SMS: 64 was too small, 128 was ok
|
||||||
static const int PERF_QUERY_BUFFER_SIZE = 512;
|
static const u32 PERF_QUERY_BUFFER_SIZE = 512;
|
||||||
|
|
||||||
void WeakFlush();
|
void WeakFlush();
|
||||||
// Only use when non-empty
|
// Only use when non-empty
|
||||||
@ -34,10 +34,10 @@ private:
|
|||||||
|
|
||||||
// This contains gl query objects with unretrieved results.
|
// This contains gl query objects with unretrieved results.
|
||||||
ActiveQuery m_query_buffer[PERF_QUERY_BUFFER_SIZE];
|
ActiveQuery m_query_buffer[PERF_QUERY_BUFFER_SIZE];
|
||||||
int m_query_read_pos;
|
u32 m_query_read_pos;
|
||||||
|
|
||||||
// TODO: sloppy
|
// TODO: sloppy
|
||||||
volatile int m_query_count;
|
volatile u32 m_query_count;
|
||||||
volatile u32 m_results[PQG_NUM_MEMBERS];
|
volatile u32 m_results[PQG_NUM_MEMBERS];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user