Skip to content

Commit

Permalink
Increase streamer overlay update rate
Browse files Browse the repository at this point in the history
  • Loading branch information
Tripperful committed Sep 16, 2024
1 parent b312c61 commit d4eddce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { useEffect, useState } from 'react';
import { motdApi } from 'src/api';

const streamQueue: StreamFrame[] = [];
const streamUpdateRate = 250; // 0.25 seconds
const streamUpdateRate = 100; // 0.1 seconds
let now = Date.now();

export const useDelayedStreamFrame = (sessionId: string, delay: number) => {
Expand Down
2 changes: 1 addition & 1 deletion packages/server/src/api/stream.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { getPlayersProfiles } from 'src/steam';

export const streamRouter = Router();

const streamCacheLifetime = 0.5 * 1000; // 0.5 seconds
const streamCacheLifetime = 0.125 * 1000; // 0.125 seconds

const streamCache: Record<
string,
Expand Down

0 comments on commit d4eddce

Please sign in to comment.