Skip to content

Commit

Permalink
Fixed a REALLY dumb mistake
Browse files Browse the repository at this point in the history
- Turns out if was you make the self.dataList file constantly update for not good reason it
causes a MASSIVE performance regression. Go figure...
  • Loading branch information
GhostNaN authored Jan 6, 2020
1 parent 0e93f6b commit c5e53d2
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions ReVidiaGUI.py
Original file line number Diff line number Diff line change
Expand Up @@ -307,9 +307,10 @@ def setTextPalette(self):
# Creates the bars for painter to draw
def prePaint(self):
# Get audio data
self.dataList = self.Q1.get()
if self.split:
self.rightDataList = self.Q2.get()
while len(self.dataList) < self.audioFrames:
self.dataList = self.Q1.get()
if self.split:
self.rightDataList = self.Q2.get()

# Process audio data
oldBarValues = self.barValues
Expand Down

0 comments on commit c5e53d2

Please sign in to comment.