| Blockland Forums > General Discussion |
| Memory if no "on" existed in input events / why colorsets? |
| (1/3) > >> |
| Gen. Hothauser:
Two random questions that do not correlate with eachother. How much memory could be saved if input events stopped putting "on" in front of the event, such as "Onactivate". Instead, couldn't a good amount of wasted memory be gained by never using "on" anymore? Why do we have colorsets, and not a customizable paint color chooser. I assume it be for memory's purpose; each brick is saved with a data value corresponding to the paint color in the colorset that it is painted with. If this is so, then why can't we have ingame colorset customization, like in the avatar menu? |
| Swat 3:
What kind of question is that? On is a pretty good ordering phrase. What, are we just going to do: OnActive >> Client >> ifCenterprint OnVehicle >> Driver >> setColor They are needed and I don't think two letters make a huge difference...? |
| Chrono:
With gigabytes of RAM and hundreds of gigabytes of HDD space, you're actually concerned about two bytes? |
| Kalphiter:
500,000 bricks: ~1MB of memory saved |
| Chrono:
--- Quote from: Kalphiter on January 14, 2013, 10:33:49 PM ---500,000 bricks: ~1MB of memory saved --- End quote --- 1 MB isn't that much either, and, it's also not per brick. Bricks store events as integers, not strings. The strings are actually only used once per input name on the server, and varying amounts per on the client, depending on how many events are in the list at the time when you have the GUI open. |
| Navigation |
| Message Index |
| Next page |