Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: move to vue3 and vite #921

Open
wants to merge 41 commits into
base: next
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
fc28b39
initial commit - vue2 & vite
2xAA May 10, 2024
d7f5528
refactor: upgrade to Vue 3 and Vuex 4
2xAA May 10, 2024
3f9be91
style: lint
2xAA May 10, 2024
3db59ce
build: fix build after vite migration
2xAA May 13, 2024
b0f5fca
build: remove out dir
2xAA May 13, 2024
f4ecdda
test: fix tests and ndi
2xAA May 13, 2024
5bffb35
feat(ndi): adds ndi send
2xAA May 13, 2024
411f491
feat(ndi): fix ndi send in build
2xAA May 13, 2024
4a89305
fix: styles and gl containers
2xAA May 13, 2024
e4af4e6
fix: color-picker
2xAA May 16, 2024
47628b3
fix: remove log
2xAA May 16, 2024
bff59a2
refactor: update Date.now to performance.now
2xAA May 16, 2024
9652a0d
fix: add willReadFrequently context option for performance
2xAA May 16, 2024
bc2daa5
fix: cleanup grandiose properly
2xAA May 16, 2024
b69ea99
fix: cleanup grandiose properly
2xAA May 16, 2024
5f1021b
fix: vec4 control
2xAA May 16, 2024
eeee842
fix: cleanup grandiose properly from vite reload
2xAA May 19, 2024
5208bbc
feat(gallery): render module previews correctly
2xAA May 19, 2024
7dd1764
fix: isf shaders now use independant buffers for gallery rendering
2xAA May 19, 2024
1474625
fix: add swap state cleanup after loading preset
2xAA May 19, 2024
ff1d767
fix: add gallery canvas for isf for better performance
2xAA May 20, 2024
249e2fb
fix: allow more than 4 webgl contexts
2xAA May 20, 2024
5ab88ba
fix: add gallery canvas for shaders for better performance
2xAA May 20, 2024
00ef6f7
feat: use higher precision timer for framedelta calculation
2xAA May 20, 2024
abd9952
fix: remove grandiose send due to memory leaks
2xAA May 20, 2024
9dab80d
fix: handle grandiose to avoid memory leaks
2xAA May 24, 2024
11f19b6
fix: golden layout title overflow
2xAA Jun 14, 2024
4e86722
fix: update directives to vue 3
2xAA Jun 14, 2024
bfb0d01
fix: update directives to vue 3
2xAA Jun 14, 2024
a737f25
fix: update to Vue 3
2xAA Jun 14, 2024
8c1ca52
feat(osc): adds preliminary osc support
2xAA Jun 14, 2024
001a592
fix: use new vcync fork of grandiose, add missing dep
2xAA Jun 27, 2024
40f3a1f
fix: bind value prop after vue3 update
2xAA Jul 17, 2024
6ca5ec5
Merge branch 'next' into wip
2xAA Aug 2, 2024
100cb0a
refactor: remove unused code
2xAA Aug 2, 2024
8a5e3f1
fix: update electron version
2xAA Aug 2, 2024
b63412b
fix: update swap to slice arrays to leave unwanted items in place
2xAA Aug 3, 2024
3ce1b2e
fix: refactor group resource cleanup and make reset of swap a commit …
2xAA Aug 4, 2024
8478f97
Merge branch 'next' into refactor/vue3-vite
2xAA Aug 4, 2024
9397c78
feat: use device pixel ratio for preview canvas
2xAA Aug 5, 2024
6e64d49
Merge branch 'next' into refactor/vue3-vite
2xAA Feb 13, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
refactor: update Date.now to performance.now
2xAA committed Aug 2, 2024
commit bff59a286efb9fa0ed18a875a4b5a835f1da9796
10 changes: 8 additions & 2 deletions src/renderer/src/application/worker/index.worker.js
Original file line number Diff line number Diff line change
@@ -16,6 +16,12 @@ function getFilename(path) {
return path.substring(path.lastIndexOf("/") + 1, path.lastIndexOf("."));
}

function getTime() {
// const hrTime = global["process"]["hrtime"]();
// return hrTime[0] * 1000 + hrTime[1] / 1000000;
return global["performance"].now();
}

async function start() {
// For Playwright
self._get = get;
@@ -227,13 +233,13 @@ async function start() {
let prevTime = 0;

let now;
let then = Date.now();
let then = getTime();
let delta;

function looper(rafDelta) {
raf = requestAnimationFrame(looper);

now = Date.now();
now = getTime();
delta = now - then;

if (delta > interval) {