I have a strange issue when I am getting rows in a data table…
I am using a loop with a delay to read the values as you’ll see.
All is fine except when I use a delay longer than 5 seconds, the longer the delay the less change the data is received from the table!
If I use a delay of 2 seconds or so, all rows get read, if I use a delay of 10 only 5 rows get read.
This really doesn’t make sense to me, I’ve extensively checked that this blueprint isn’t being triggered anywhere else (it’s the main game mode for the project).
There’s not much to this blueprint really, I’ve tried different data tables with different numbers of entries, but the behaviour is the same.
Any ideas woudl be much appreciated, thanks.
Sorry yes that isn’t clear at all. I’ll try and do a bigger one.
Yes it prints the rows fine, all the way up to 10 if the delay is 4 or less, only up to 5 if the delay is 10, and only up to about 3 if the delay is 20.
Thanks for that, unfortunately it didn’t fix it but it now counts up to 6! (with a Time of 5).
It still counts up to 10 with a Time of 1, and up to 3 with a Time of 10.
The INT isn’t used anywhere else, to be sure I made a new one and it has the same behaviour.
I appreciate the help anyway.
I think we’re looking for the issue in the wrong place.
do you pause the game someplace?
how can you tell when it stops working? How are you testing this?
also, could you try this:
– run the game, select the Offroad Game Mode in the debugger drop down at the top
– right click the var name in the graph and Watch This Value
What do you get?
it didn’t fix it but it now counts up to 6! (with a Time of 5).
Can we get higher? Apart from the countdown not working, your game still works fine?
Everything else in teh game works fine - I use this code to spawn groups of enemies aand noticed I could only spawn a certain amount of them, but I ytirrf dtripping it foen to just displaying numbers but its still the same.
I do agreee it must be somewhere else that the problem is happening - the only references to the offroad game mode is in the default for the level and the master map
No, nothing quite a crazy as that
I will check as see if there is anything super demanding happening anywhere though.
Blank as in no grey box shows up at all after the offending number is reached
I’ve found the problem (at least the root cause of it)
I tried setting my Pawn to none in the game mode and it worked fine - all values at all delay times displayed normally.
There is a LOT going on it my Pawn blueprint, so I’ll go through that yntil I find what’s causing the latency issue.
Thanks so much for your time and helping me to track down where to look, its much apprecaied
At the risk of others shaking their heads with disgust I’ll share an image of my Pawn blueprint (well most of it as it doesn’t all fit on the screen at once).
I need to spend some time refining this obviously, although I suspect I can narrow down exactly what it casuing the latency issue.