Anyone have a suggestion for how to go about adding a block of code that will run at a much higher rate than the graphics frame rate? Lets say you want to run the block at 300 Hz, how would you do this?
The frame rate is simply how fast the rendering thread is executing, you could easily have a 30Hzframe rate, but 60Hz simulation assuming your code ran fast enough. So, if you spawn a thread, and it’s able to run at 300Hz (i.e. you don’t have an early out condition, or sleep to keep it within a certain time limit) - it’ll run as fast as you allow it/it can depending on thread priority and such.
Here’sa good link to various resources on getting started with multithreading in UE4.