From c4c54730bf07566af9879c73aa2d024c16ea2d62 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Thu, 20 Jan 2022 16:59:38 -0800 Subject: [PATCH] softgpu: Remove bin asserts. These are active in release and used in tight loops. --- GPU/Software/BinManager.h | 6 ------ 1 file changed, 6 deletions(-) diff --git a/GPU/Software/BinManager.h b/GPU/Software/BinManager.h index 9eeffa8dd0..36d621ae37 100644 --- a/GPU/Software/BinManager.h +++ b/GPU/Software/BinManager.h @@ -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;