mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-30 19:24:23 +01:00
softgpu: Remove bin asserts.
These are active in release and used in tight loops.
This commit is contained in:
1 parent
55c11425e4
commit
c4c54730bf
1 file changed
-6
@@ -75,7 +75,6 @@ struct BinQueue {
|
||||
}
|
||||
|
||||
size_t Push(const T &item) {
|
||||
_dbg_assert_(size_ < N - 1);
|
||||
size_t i = tail_++;
|
||||
if (i + 1 == N)
|
||||
tail_ -= N;
|
||||
@@ -85,7 +84,6 @@ struct BinQueue {
|
||||
}
|
||||
|
||||
T Pop() {
|
||||
_dbg_assert_(!Empty());
|
||||
size_t i = head_++;
|
||||
if (i + 1 == N)
|
||||
head_ -= N;
|
||||
@@ -96,12 +94,10 @@ struct BinQueue {
|
||||
|
||||
// Only safe if you're the only one reading.
|
||||
T &PeekNext() {
|
||||
_dbg_assert_(!Empty());
|
||||
return items_[head_];
|
||||
}
|
||||
|
||||
void SkipNext() {
|
||||
_dbg_assert_(!Empty());
|
||||
size_t i = head_++;
|
||||
if (i + 1 == N)
|
||||
head_ -= N;
|
||||
@@ -110,12 +106,10 @@ struct BinQueue {
|
||||
|
||||
// Only safe if you're the only one writing.
|
||||
T &PeekPush() {
|
||||
_dbg_assert_(size_ < N - 1);
|
||||
return items_[tail_];
|
||||
}
|
||||
|
||||
void PushPeeked() {
|
||||
_dbg_assert_(size_ < N - 1);
|
||||
size_t i = tail_++;
|
||||
if (i + 1 == N)
|
||||
tail_ -= N;
|
||||
|
||||
Reference in new issue
Block a user