D
DeadZombie
Guest
Hello, guys!
I decided to display inventory from ds_map using 'Draw GUI' event, but then I wondered, isn't it too expensive getting map values using this event? Because maps are not sorted in any (recognizable) way, meaning that to find a certain key I may have to iterate through the whole thing (which is very slow) every time Draw GUI works.
Please enlight me, how often 'Draw GIU' gets data from map and refresh displayed text? What event would be better to use if I want to refresh data only if map's values changed?
I decided to display inventory from ds_map using 'Draw GUI' event, but then I wondered, isn't it too expensive getting map values using this event? Because maps are not sorted in any (recognizable) way, meaning that to find a certain key I may have to iterate through the whole thing (which is very slow) every time Draw GUI works.
Please enlight me, how often 'Draw GIU' gets data from map and refresh displayed text? What event would be better to use if I want to refresh data only if map's values changed?