kibaBG 49 Posted November 20, 2022 I made addAction so player can check his rating but using it screws performance for a while, game starts to micro stutter, etc. Additional to this it shows error in line 1 ... //the addAction player addAction ["Check Your Rating",{ execVM "rating.sqf"}]; //in rating.sqf hintSilent format ["RATING %1",rating player]; Can this be done in more optimized way? Share this post Link to post Share on other sites
Neflax 2 Posted November 21, 2022 Hi, if there no more context in your script you don't need to make a execVM. 2 Share this post Link to post Share on other sites
pierremgi 4737 Posted November 21, 2022 9 hours ago, kibaBG said: I made addAction so player can check his rating but using it screws performance for a while, game starts to micro stutter, etc. Additional to this it shows error in line 1 ... //the addAction player addAction ["Check Your Rating",{ execVM "rating.sqf"}]; //in rating.sqf hintSilent format ["RATING %1",rating player]; Can this be done in more optimized way? The culprit isn't this code. Tell us more about your scenario and scripts. 1 Share this post Link to post Share on other sites
kibaBG 49 Posted November 21, 2022 @pierremgi There is no much to tell. I just use player rating as currency for calling CAS, buying vehicles, etc in a sandbox SP scenario. I can use money system but since rating is already in the game giving points for killing enemies I use that. 🙂 When the sandbox is ready I will make a "release topic". Edit: Changing hintSilent with just hint removes the stuttering. I always thought hintSilent is less resource heavy but ... Share this post Link to post Share on other sites
Harzach 2505 Posted November 21, 2022 2 hours ago, kibaBG said: I always thought hintSilent is less resource heavy but ... It's literally just hint without sound. 1 Share this post Link to post Share on other sites
kibaBG 49 Posted November 21, 2022 1 hour ago, Harzach said: It's literally just hint without sound. Both already ditched for sideRadio and sideChat 😄 and some radio sentences from the config. Share this post Link to post Share on other sites
Harzach 2505 Posted November 21, 2022 *edit* - never mind, not thinking straight. Share this post Link to post Share on other sites
kibaBG 49 Posted November 22, 2022 This is what I did to avoid using hint/sintSilent. _a = str rating player; [west,"PAPA_BEAR"] sideChat _a; Share this post Link to post Share on other sites
pierremgi 4737 Posted November 23, 2022 10 hours ago, kibaBG said: This is what I did to avoid using hint/sintSilent. _a = str rating player; [west,"PAPA_BEAR"] sideChat _a; Beyond this work around, you could open a ticket for warning devs about a potential issue. No sure someone here can explain why hintSilent (vs hint) could ruin performance, to a level you can feel stuttering in game. Just a suggestion. Share this post Link to post Share on other sites