logo

Live Production Software Forums


Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
Taggy  
#1 Posted : Thursday, February 6, 2025 6:55:06 AM(UTC)
Taggy

Rank: Newbie

Groups: Registered
Joined: 2/6/2025(UTC)
Posts: 3
Turkey

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?
WaltG12  
#2 Posted : Thursday, February 6, 2025 7:40:34 AM(UTC)
WaltG12

Rank: Advanced Member

Groups: Registered
Joined: 7/4/2021(UTC)
Posts: 337
United States

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?
Taggy  
#3 Posted : Thursday, February 6, 2025 11:59:43 PM(UTC)
Taggy

Rank: Newbie

Groups: Registered
Joined: 2/6/2025(UTC)
Posts: 3
Turkey

Originally Posted by: WaltG12 Go to Quoted Post
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.
WaltG12  
#4 Posted : Friday, February 7, 2025 11:21:15 AM(UTC)
WaltG12

Rank: Advanced Member

Groups: Registered
Joined: 7/4/2021(UTC)
Posts: 337
United States

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.
Taggy  
#5 Posted : Monday, February 10, 2025 8:33:24 PM(UTC)
Taggy

Rank: Newbie

Groups: Registered
Joined: 2/6/2025(UTC)
Posts: 3
Turkey

Originally Posted by: WaltG12 Go to Quoted Post
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.
Henny  
#6 Posted : Wednesday, February 12, 2025 6:24:58 AM(UTC)
Henny

Rank: Advanced Member

Groups: Registered
Joined: 5/14/2013(UTC)
Posts: 142
Man
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
doggy  
#7 Posted : Wednesday, February 12, 2025 6:52:25 AM(UTC)
doggy

Rank: Advanced Member

Groups: Registered
Joined: 12/27/2012(UTC)
Posts: 5,324
Belgium
Location: Belgium

Thanks: 299 times
Was thanked: 980 time(s) in 813 post(s)
Originally Posted by: Henny Go to Quoted Post
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
Users browsing this topic
Guest
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.