Sorry for the bad audio. I was in a closet because my family was watching tv downstairs.
@SemtexZero8 күн бұрын
Hey CodeaDev great video, have you tested the performance of table.sort when you have hundreds if not thousands of entities to sort every frame?
@CodeaDeveloper8 күн бұрын
@@SemtexZero well this game does not require 1000 entities also it is part of Lua so easier than coding a custom sorter in it but I do want to know this. Is there a faster method of sorting a list you know of?
@SemtexZero7 күн бұрын
@@CodeaDeveloper i don’t know if it’s faster but i have a sorting algorithm that uses the y value as the key, so the bottom of the screen is 0 and whatever the max height of the device is the top y value, i sort the entries into this array and do a skip of the entities if they don’t exist, i read on stack overflow site that table.Methods are slow but i never tried to test my sort vs table, maybe i will later and share the results
@SemtexZero7 күн бұрын
@@CodeaDeveloper btw the reason i ask is because my game will be like vampire survivors where there can be hundreds of enemies on the screen at the same time + environmental details