NoMoneyNoFameNoDame
Artist Formerly Known as Prosper
- Joined
- Feb 22, 2022
- Messages
- 943
Uh I don't know what the fuck I was reading but if you are re-DMAing your inventory simply to add/remove items you are an idiot.
You should only need to re-DMA it if you upgrade your inventory size. Even so that's probably dumb as fuck.
Are you making some idiotic sim game where your inventory size fluxuates every second?
Do you think Starfield's minimum of 16 GBs of ram has anything to do with inventory size and the "epic" UI graphics?
Wtf.
Pick a theoretical max and allocate that. Then simply don't use the unused slots. Linear array access is fast as fuck.
And if you did have multigrid inventory you wouldn't have 1000 slots, more like 100 at best.
Then it would be tabbed. And if it is tabbed it's called tabindex * slotsperpage as your start iteration point.
You should only need 1 inventory and 1 item class for your entire game btw. More than that is feature creep.
And yes if you re-DMAd when you physically ran out of space in the other slots, it wouldn't matter.
Tying issues of VIEW (UI) to DATA , is like tying your character speed to your FPS. That's bethesda level shit alright. BUt don't come in here suggesting
having a grid-based inventory is really inferior to vertical scrolling list because of memory space issues or row traversal.
I sorry if I hurt any feelings by this critique.
Sincerely,
creator of Redaxium 1 and 2.
You should only need to re-DMA it if you upgrade your inventory size. Even so that's probably dumb as fuck.
Are you making some idiotic sim game where your inventory size fluxuates every second?
Do you think Starfield's minimum of 16 GBs of ram has anything to do with inventory size and the "epic" UI graphics?
Wtf.
Pick a theoretical max and allocate that. Then simply don't use the unused slots. Linear array access is fast as fuck.
And if you did have multigrid inventory you wouldn't have 1000 slots, more like 100 at best.
Then it would be tabbed. And if it is tabbed it's called tabindex * slotsperpage as your start iteration point.
You should only need 1 inventory and 1 item class for your entire game btw. More than that is feature creep.
And yes if you re-DMAd when you physically ran out of space in the other slots, it wouldn't matter.
Tying issues of VIEW (UI) to DATA , is like tying your character speed to your FPS. That's bethesda level shit alright. BUt don't come in here suggesting
having a grid-based inventory is really inferior to vertical scrolling list because of memory space issues or row traversal.
I sorry if I hurt any feelings by this critique.
Sincerely,
creator of Redaxium 1 and 2.