Trying to auto-calculate what HMD SP the user should have based on their current framerate. Basically, I want to calculate the current FPS, if it is >= 75, then enable low persistence and execute hmd sp 130. If the framerate is lower than 75, then decrease the hmd sp until the framerate hits 75.
Any insight I could get on how to do this in blueprints and I would be appreciative. Thanks!
If CurrentFrameRate < 75 Then (Do FPS increase stuff, disable effects, shadows, etc…)
That should get plugged into a WhileLoop:
While CurrentFrameRate < 75 or SP = 50 then (HMDSP = HMDCom + (SP - 1)), Execute console command HMDSP | Exit Loop
However, since HMD SP is called by a console command, I am not entirely sure how to add a string and an integer together to form a single string. The 2 variables, HMDCom, which would be a string variable “HMD SP” and the second variable SP would be an integer, 130. Add the two variables together to form the string, HMDSP, “HMD SP 130”.