Re: Optimization when using a 2-dimensional array of objects

2024-03-22 Thread Liam McGillivray via Digitalmars-d-learn
On Friday, 22 March 2024 at 07:34:33 UTC, monkyyy wrote: Is one option more efficient than the other? You should probaly do the lazyest thing, factor out your "ispassable" logic, like what your walking n of 3, n of 8, n of 15? so long as you dont do something insane it will be fast on a

Re: Optimization when using a 2-dimensional array of objects

2024-03-22 Thread monkyyy via Digitalmars-d-learn
On Friday, 22 March 2024 at 02:19:07 UTC, Liam McGillivray wrote: In the [game I am currently making](https://github.com/LiamM32/Open_Emblem/blob/master/oe-raylib/source/app.d), I have a `Map` class (actually a combination of an interface & class template, but I'll call it a "class" for

Optimization when using a 2-dimensional array of objects

2024-03-21 Thread Liam McGillivray via Digitalmars-d-learn
In the [game I am currently making](https://github.com/LiamM32/Open_Emblem/blob/master/oe-raylib/source/app.d), I have a `Map` class (actually a combination of an interface & class template, but I'll call it a "class" for simplicity), in which there will probably be only one instance running at a