Skip to content

Commit

Permalink
feat(smartAvatar): ACT-759 test speed endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
yuri-wolf3d committed Aug 5, 2024
1 parent fd5f755 commit 7f4502a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hooks/useDeviceDetector/use-device-detector.hook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ type NetworkTierResult = {
// in mbps
const networkTierGrades = {
1: 1,
2: 3,
2: 10,
3: Infinity
};

Expand Down Expand Up @@ -80,7 +80,7 @@ export function useDeviceDetector(options?: DeviceDetectorHookProps) {
gpuTierResult.tier = 3;
}

const downloadSpeed = await checkDownloadSpeed('https://models.readyplayer.me/6613f5defa73bfcb698a92fd.png');
const downloadSpeed = await checkDownloadSpeed('https://api.readyplayer.me/v3/avatars/editor/benchmark');

let tier = 3;
if (downloadSpeed < networkTierGrades[1]) {
Expand Down

0 comments on commit 7f4502a

Please sign in to comment.