Determining CPU on Windows Store Apps in Unity
Hey guys we just added a blog with the code on discovering the CPU type a Windows Store application is running on. This helps us scale up for Windows x86 versus ARM tablets without the hassles of maintaining to separate build paths.
The full unity package is there for download too.
http://blog.celestial-games.com/2014/01/determine-cpu-and-count-in-unity.htm
Feel free to comment here just didn't want to cut and paste the whole blog over again.
PS :( this only works in Unity pro sorry that's a bit sucky I know.
The full unity package is there for download too.
http://blog.celestial-games.com/2014/01/determine-cpu-and-count-in-unity.htm
Feel free to comment here just didn't want to cut and paste the whole blog over again.
PS :( this only works in Unity pro sorry that's a bit sucky I know.
Thanked by 1mattbenic
Comments
Intel(R) Core(TM) i5-2400 CPU @ 3.10GHz
I prefer the Enum list returned from the Windows API that specifically identifies ARM, I7 etc. as apposed to a string that is hard to tie down a reg-ex for determining exactly what will be returned each time. Also it was an opportunity to experiment with adding c++ dll's to Unity a dangerous idea to say the least.
The code for c++ and Unity is on the blog. Nothing outrageous needed really. Just so long as you already understand how to package DLLs into different folders for different versions.