mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-29 03:33:47 +02:00
batch-trim session/log tables to reduce churn during high-frequency updates
This commit is contained in:
@@ -482,8 +482,8 @@ export const useGameLogStore = defineStore('GameLog', () => {
|
||||
function sweepGameLog() {
|
||||
const { data } = gameLogTable.value;
|
||||
const j = data.length;
|
||||
if (j > vrcxStore.maxTableSize) {
|
||||
data.splice(0, j - vrcxStore.maxTableSize);
|
||||
if (j > vrcxStore.maxTableSize + 50) {
|
||||
data.splice(0, 50);
|
||||
}
|
||||
|
||||
const date = new Date();
|
||||
|
||||
Reference in New Issue
Block a user