Timeline for XNA Vertex buffer/Index buffer high memory usage?
Current License: CC BY-SA 3.0
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
May 1, 2012 at 20:53 | vote | accept | Levi H | ||
May 1, 2012 at 18:24 | answer | added | mikeschuld | timeline score: 1 | |
Mar 3, 2012 at 2:37 | history | tweeted | twitter.com/#!/StackGameDev/status/175771791195774977 | ||
Mar 3, 2012 at 1:55 | comment | added | David Gouveia |
Well, from your code snippet there, be aware that List<T>.ToArray() actually copies all the elements to a new array, so obviously you end up with twice the amount of data in memory. Then, I'm not sure but I think SetData might also make its own copy, making it three times bigger. Do you think that might be the reason?
|
|
Mar 3, 2012 at 1:28 | history | asked | Levi H | CC BY-SA 3.0 |