GameMaker [QUESTION] From ds_priority to ds_list (fast)

xDGameStudios

GameMaker Staff
GameMaker Dev.
Hi everyone,

can someone recommend me on the fastest way to convert a ds_priority to a ds_list?!

PROBLEM: I need to iterate through a bunch of objects depending on their priority. What is the best fastest way to do it?!

NOTES:
  • ds_list are fastest to iterate through so I wanted to end up with one.
  • ds_priority orders them automatically.

DOUBTS:
  • Should I be concerned with the ds_priority being slower to iterate through?
  • Should I implement a ds_sorted_list myself?

Thank you for your time and atention :)
 
Top