Skip to content

feat(core): 1378 fps limit#1381

Open
Tinoooo wants to merge 6 commits intomainfrom
feat/1378-fps-limit
Open

feat(core): 1378 fps limit#1381
Tinoooo wants to merge 6 commits intomainfrom
feat/1378-fps-limit

Conversation

@Tinoooo
Copy link
Member

@Tinoooo Tinoooo commented Mar 14, 2026

fixes TRES-292

@Tinoooo Tinoooo self-assigned this Mar 14, 2026
@Tinoooo Tinoooo requested a review from alvarosabu as a code owner March 14, 2026 14:56
@Tinoooo Tinoooo linked an issue Mar 14, 2026 that may be closed by this pull request
4 tasks
@netlify
Copy link

netlify bot commented Mar 14, 2026

Deploy Preview for tresjs-lab ready!

Name Link
🔨 Latest commit ce7ee96
🔍 Latest deploy log https://app.netlify.com/projects/tresjs-lab/deploys/69b7b04e69f1c8000804d0d5
😎 Deploy Preview https://deploy-preview-1381--tresjs-lab.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify
Copy link

netlify bot commented Mar 14, 2026

Deploy Preview for cientos-tresjs ready!

Name Link
🔨 Latest commit ce7ee96
🔍 Latest deploy log https://app.netlify.com/projects/cientos-tresjs/deploys/69b7b04e1587b900084c61d7
😎 Deploy Preview https://deploy-preview-1381--cientos-tresjs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify
Copy link

netlify bot commented Mar 14, 2026

Deploy Preview for tresjs-docs ready!

Name Link
🔨 Latest commit ce7ee96
🔍 Latest deploy log https://app.netlify.com/projects/tresjs-docs/deploys/69b7b04e4b2ff70008c7de53
😎 Deploy Preview https://deploy-preview-1381--tresjs-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@pkg-pr-new
Copy link

pkg-pr-new bot commented Mar 16, 2026

Open in StackBlitz

@tresjs/cientos

npm i https://pkg.pr.new/@tresjs/cientos@1381

@tresjs/core

npm i https://pkg.pr.new/@tresjs/core@1381

@tresjs/eslint-config

npm i https://pkg.pr.new/@tresjs/eslint-config@1381

@tresjs/leches

npm i https://pkg.pr.new/@tresjs/leches@1381

@tresjs/nuxt

npm i https://pkg.pr.new/@tresjs/nuxt@1381

@tresjs/post-processing

npm i https://pkg.pr.new/@tresjs/post-processing@1381

commit: ce7ee96

const context = shallowRef<TresContext>(useTresContextProvider({
scene: scene.value as TresScene,
canvas: props.canvas,
fpsLimit: () => props.fpsLimit ?? Infinity,
Copy link
Member

@alvarosabu alvarosabu Mar 16, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minor:

@Tinoooo Infinity works here because VueUse computes the intervalLimit and it ends up being null, but the UseRafFnOptions.fpsLimit is typed as MaybeRefOrGetter<number | null> where null signals "no limit", so I think we should respect the API contract

fpsLimit: () => props.fpsLimit ?? null,

wdty?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

FPS limit

2 participants