Create On Demand Backlog

This is some weird question, but I need to create an artificial lag in order to check how my game works during the stock decline ... I have no idea how to do this ... I would like to be able to enable / turn off the delay if possible.

+4
source share
1 answer

If you want to slow down the code, you can enter a lock using the NSThread class method sleepForTimeInterval:

To simulate a slow network connection, Craig Hockenberry wrote this blog post some time ago.

+2
source

Source: https://habr.com/ru/post/1391797/


All Articles