medcelerate / FFGLTouchEngine

Touchengine FFGL Plugin
Apache License 2.0
44 stars 2 forks source link

absTime.seconds too fast #17

Open function-store opened 1 month ago

function-store commented 1 month ago

Hi, first of all thanks a lot for developing this much needed integration!

I just dropped a simple test of a noise texture transformed with absTime.seconds and it moves way faster than in TD. I also output the value in a Text TOP and it is indeed running around 2 times faster

medcelerate commented 1 month ago

Hmm, my only assumption could be that resolume is calling the cook function faster than the intended frame rate. This is a bit odd as I haven't encountered this issue and the seconds should be tied to the system clock and not resolume

function-store commented 1 month ago

it is a vanilla Resolume install with default settings on a Win11 machine

medcelerate commented 1 month ago

What version of TD are you on. We have noticed issues with older 2023 builds. The latest TD 2023 release is working the best.

function-store commented 1 month ago

It was at the time latest 17700. I'll be testing with 18880 soon

function-store commented 1 month ago

I believe I found the reason @medcelerate !

In your code you're initializing everything with 60 frames. I set my output monitor (which used to be on 144Hz) to 60, and now things seem to be running normal speed.

Seems like there could be a solution provided in your code directly, but for knowing this already helps.

medcelerate commented 1 month ago

Interesting, it may actually have to do with the d3d device and how it clocks. The solution would be to set frame rate based of ffgl but I’m not very sure how to do that.

On Mon, Jul 22, 2024 at 10:46 PM Function Store @.***> wrote:

I believe I found the reason @medcelerate https://github.com/medcelerate !

In your code you're initializing everything with 60 frames. I set my output monitor (which used to be on 144Hz) to 60, and now things seem to be running normal speed.

Seems like there could be a solution provided in your code directly, but for knowing this already helps.

— Reply to this email directly, view it on GitHub https://github.com/medcelerate/FFGLTouchEngine/issues/17#issuecomment-2244146176, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHYKRGP36O2J5TQA4O35UDTZNW7XRAVCNFSM6AAAAABKUR22L6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENBUGE2DMMJXGY . You are receiving this because you were mentioned.Message ID: @.***>