![]() Also, it's not just game objects for loading, I use arrays to store progress of different quests for example if they are finished - array with 1000 ints, where 1 is finished 0 is not. ![]() I only need the items stored in the array for easy access. I don't need all the items from the array in the scene, if that's the question. Then on that object you can set Array List Proxy components (its better to use array maker's array lists or hash tables) EcosystemĪrray Lists are faster, easier to access more flexible and can be saved with easy save (action for it can be found separate on the Ecosystem)ġ. I have a enemy loading system that also had prefabs and i would create a pool only the ones i needed for a particular scene, but loading became very long until i changed the array to strings and used resources load.Īlso using it as a global might not be the best way.īetter set a gameobject as a global (Call it Data Manager for example) So you might want to use resources load and only store the location where to load the prefabs (best to load the beginning of a scene, or during some pause in the game as it might cause some short lag) If those are prefabs they need to be loaded even when they are not yet used. Is the gameplay getting slow and/or loading (start playing) Just learned that, by declaration of array size ,Ĭontiguous RAM block is allocated for the array declared.Are you storing prefabs or items in the scene?Īlso, are you using Playmakers build in array or Array Maker? Or it takes ram gradually as it actually called, increased in the usage size in the running script ? So we can set huge array size at declaration and left unchanged at all timeįor any further increase in array size usage.ĭoes it take ram space for all the 1 million array items at declaration, That is, if is not the issue at all to declare huge and use little , ![]() This is to compare the affect on ram usage when If we declared array to 1 million in size and set default value to 0, My 16 GB Ram was ample there and was not the problem.Īs to above JoshM's comment, it will use only 4 mb ram for 1 million array size. With for loops ran 1 million rounds that made MC hanged. Just to point that I tested the above result using JoshM's script Just saying that the array size is not causing the high memory usage here, but the MC program is when using 1-2 million price bars. That cannot really be compared to the overhead added by 1 million bar charts or 1 million cells in Excel. Having said the above, I regularly run an indicator with a 400x10 array, with no noticeable latency.ġ million array integer elements for a one-dimensional C# array for example only takes 4mb of memory. If you have a gaming machine, you will probably see slightly better result than a store bought student computer. The limitation is more on the memory you have (speed and size), and the efficiency of your motherboard. It is ok to have high expectation on your software,īut everything must be put into perspective and context.Īn array is a memory resident temporary "store". How about a retrieve and recalc of 1 million cells on an Excel worksheet? How long did it take? Have you ever loaded a 1 million bars chart? On any charting software? How was the performance? The calculated data is kept in arrays and is not the basic OHLCV of the bar.Īrray was never designed to be used as a "database". Is there a generally good recommendation to work on bigger calculated data ? ![]() What can we put in to the test to still feel confident that it is not hang already ? When wait for that long it not resistable to assume it is hanged already 2 yrs data of tick level bars, wait for 10 -24 hrs and still MC does not hang and return correct value ? Not to mention any higher than 2D dimensions which there is none at all.ĭoes anyone backtest or optimize eg. There is not many functions and apparently inadequate functions to work on 2D array, In using array with dimension increased from 1D to higher dimension, It is better to keep in maximum of less than 15 seconds a bar to be tolerable, in my sense. In case we need to calculate in all bars, In general for one bar calculation to use 3 mins to calculate, it is way too long. It took more than 30 mins and still calculating, so I close the workspace. Calculate array size time by 50 times in for loops. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |