Rank: Newbie
Groups: Registered
Joined: 2/6/2025(UTC) Posts: 3 
|
Hello everyone, first of all, greetings. I am fetching data from an API for a stream. Although the API is working correctly, the duration in the retrieved data is skipping. I need to see every second, but sometimes it updates every 4 seconds. Can anyone with knowledge on this help?
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 7/4/2021(UTC) Posts: 337  Thanks: 8 times Was thanked: 51 time(s) in 42 post(s)
|
What API are you fetching data from?
What are you using to fetch that data?
How often are you fetching that data?
How often is the API updating that data?
|
|
|
|
Rank: Newbie
Groups: Registered
Joined: 2/6/2025(UTC) Posts: 3 
|
Originally Posted by: WaltG12  What API are you fetching data from?
What are you using to fetch that data?
How often are you fetching that data?
How often is the API updating that data? I'm getting the spawn times of mobs from a game. I update data with 500ms in vMix. In the API, the data update is around 400ms. But even though I want to see every remaining second, sometimes the data is updated after 4 seconds. The countdown on the API computer works fine, but the data coming into vMix is updated late most of the time.
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 7/4/2021(UTC) Posts: 337  Thanks: 8 times Was thanked: 51 time(s) in 42 post(s)
|
Is it possible that there's not enough time to properly retrieve the information before the cycle starts over?
Or is it possible that the API is rate limited?
Does the problem persist when you adjust your fetch timings?
You're describing an inconsistency--it's not always at 4 seconds, it's varying.
So if you set it to 4000ms, is it still inconsistent or do you get steady updates every 4 seconds?
What about 3000?
2000?
And so on.
|
|
|
|
Rank: Newbie
Groups: Registered
Joined: 2/6/2025(UTC) Posts: 3 
|
Originally Posted by: WaltG12  Is it possible that there's not enough time to properly retrieve the information before the cycle starts over?
Or is it possible that the API is rate limited?
Does the problem persist when you adjust your fetch timings?
You're describing an inconsistency--it's not always at 4 seconds, it's varying.
So if you set it to 4000ms, is it still inconsistent or do you get steady updates every 4 seconds?
What about 3000?
2000?
And so on. The API refreshes itself every time I send a renewal request. That is, it refreshes itself 12ms after I send the request, then 300ms later (I also tried with 100ms) I request data again and it refreshes itself again within 12ms. In one of the old threads they said that the problem might be because of win10. Now I will switch to win11 and try it again during the broadcast. I guess my problem will probably be solved. I hope this way will work.
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 5/14/2013(UTC) Posts: 142  Location: uk Thanks: 2 times Was thanked: 24 time(s) in 20 post(s)
|
i found uesing the api to update a title at a high refresh rate unreliable when trying to do it more than a few times a second , myworkaroud for high refresh colcks for sports timers is to use a webpage in a wepage input that pulls the data from my backend threw websockets , remember webpages cab be transparent , or just build allyour assets as html/css
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/27/2012(UTC) Posts: 5,324  Location: Belgium Thanks: 299 times Was thanked: 980 time(s) in 813 post(s)
|
Originally Posted by: Henny  i found uesing the api to update a title at a high refresh rate unreliable when trying to do it more than a few times a second , myworkaroud for high refresh colcks for sports timers is to use a webpage in a wepage input that pulls the data from my backend threw websockets , remember webpages cab be transparent , or just build allyour assets as html/css not so much unreliable but more like think just take time. reading from takes time, writing to a title ( excecuting a function ) takes time. dont give it enough time and things get weird or ue a workaround. Timers: who can read so fast anyway that they can read hundred/thousands of a second. display 10ths and when finished show full time for example
|
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.
Important Information:
The vMix Forums uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
More Details
Close