Question by 
               Moutik · Mar 25, 2019 at 10:47 PM · 
                performanceoptimizationperformance optimizationhotkeys  
              
 
              Hotkeys system performance optimization
Hello,
I created a hotkey system where I put the hotkey in a dictionnary. There is also a shortcut.cs script with an Update() that listens if a hotkey is pressed and act accordingly.
It's working fine but i'm wondering if my solution is really right as it seems to have a lot of CPU usage (see attached image). 
Do you guys have any experience about that? Is my system a bad one? How would you optimize it? Thanks
 
                 
                shortcut-cpu-usage.png 
                (67.0 kB) 
               
 
              
               Comment
              
 
               
              Your answer
 
 
             Follow this Question
Related Questions
Profiler knurl ... 0 Answers
UI performance. FPS drops. Overdraw. 0 Answers
Optimizing 10,000 trees for mobile! 1 Answer
Using separate GameObjects for "generic" scripts (Performance) 1 Answer
Sprite optimization for animation 0 Answers
 koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                