Does it make a difference when you draw something with coordinates existing out of integers or decimals(floating point numbers)? Actually is it good to work constantly with decimals in general? or is it better to work with math.floor or math.ceiling? (although they are slow to...) thank god that bar...

There is no way when this happens exactly unless you call the garbage collector explicitly, and even then you can only be sure it is collected afterwards , the GC just collects whenever it detects your program is not doing anything time-critical. so it's not like that the collector is run automatic...

Some questions If you have a loop running through a table. for i, item in pairs( itemtable ) do if condition = true then itemtable[i] = nil end end So this should make some items in the table nil. - I heard the garbage collector picks them out and removes them from the table at some point? is this c...

I didn't find a topic grouping several issues, tips, trics to make your code as optimized as possible and achieve a better performance. Things you should bear in mind when making your game a fast as possible. Like how to handle variables, loops, tables, garbage collection... These are things I've fo...

wel self.button is actually a metatable existing out of keys and values n = key and b = value (this example a button) the code itself is a for loop, iterating through every key of the table (in this example every button added to the table) b:update(dt) <-- this will update the button Someone correct...