Jump to content
kibaBG

[SOLVED] hint/hintSilent stuttering

Recommended Posts

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

Hi, if there no more context in your script you don't need to make a execVM.
 

  • Like 2

Share this post


Link to post
Share on other sites
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.

  • Like 1

Share this post


Link to post
Share on other sites

@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
2 hours ago, kibaBG said:

I always thought hintSilent is less resource heavy but ...   

 

It's literally just hint without sound.

  • Like 1

Share this post


Link to post
Share on other sites
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

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
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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×