New to the forums? Click here to read the "How To" Guide.

Developer? Click here to go to the Developer Forums.

Development on Windows 7 or Windows 8

VisualKnightVisualKnight Posts: 45
edited April 2013 in General
Development on Windows 7 or Windows 8? What does the Oculus Team prefer?

Comments

  • Realistically it shouldn't make any real difference to your development efforts given that the vast majority of all tools and software will run on both versions (for the most part). Although, a VR enabled UI view for the Win8 modern UI would be pretty compelling :)..... hmmm....
  • FlameHazeFlameHaze Posts: 84
    Although, a VR enabled UI view for the Win8 modern UI would be pretty compelling :)..... hmmm....

    The Win8 start screen UI removed logic and replaced it with coloured boxes in my mind :D

    I personally prefer working on Win7, but I've heard of many people who have used Win8 and have enjoyed it. I don't think Win8 is particularly good for developers compared to Win7 but at the same time it's not a complete disaster either. I'm pretty neutral.

    Edit: Fixing the quote O.o
    Edit 2#: Fixed :D
  • Heh... yeah, just thinking floating live tiles with relevant app info might be pretty cool and head tracking to look around all my groups of live tiles would look cool too :ugeek: .
  • EisernSchildEisernSchild Posts: 198
    Art3mis
    I already tried to build and test a Basic Metro App using the Oculus SDK (libOVR)

    What i did was compiling "libOVR" using "VS2012 for Windows Desktop"->create a new Basic Direct3D example App using the fields of the "OculusRoomTiny"-Example in "VS2012 for Windows 8"->test this example App using "Windows App Cert Kit 2.2"

    The example app did run fine but failed in the Certification Test due to calls to "API InitializeCriticalSection in kernel32.dll" and "API LoadLibraryW in kernel32.dll". Both calls are obviously done by "SensorFusion"-Class.

    That simply means that you currently can build a Windows 8-Metro-App but it wouldnt be certified by Microsoft. ;)
  • Would be great if the Oculus team could chime in and answer if they think they can make the SDK compatible for RT so that we are able to sell our Rift games in the Windows 8 store.
  • That's a good point and it would be a great platform to get some simpler and less costly projects in to the "mainstream" long term :) .
  • cyberealitycybereality Posts: 26,156 Oculus Staff
    We are mostly using Windows 7 here in the office, but I believe 8 should also work.
    AMD Ryzen 7 1800X | MSI X370 Titanium | G.Skill 16GB DDR4 3200 | EVGA SuperNOVA 1000 | Corsair Hydro H110i
    Gigabyte RX Vega 64 x2 | Samsung 960 Evo M.2 500GB | Seagate FireCuda SSHD 2TB | Phanteks ENTHOO EVOLV
  • EisernSchildEisernSchild Posts: 198
    Art3mis
    That's a good point and it would be a great platform to get some simpler and less costly projects in to the "mainstream" long term :) .
    You absolutly did hit the Point.. the Windows 8/Metro app market place is the perfect one to do "smaller" applications like a 3D-Cinema, a "Google Earth- Rift- Simulator" and Stuff like that...
  • We are mostly using Windows 7 here in the office, but I believe 8 should also work.

    Yes, 8 works. But the point was that the Oculus libs are using calls that are not allowed for Metro apps if you want to submit them to the Win8 store. They don't pass the so-called WACK test.

    The question is if Oculus can modify their SDK so that it will pass the WACK test on Win8 so we have a chance to submit to the store.
  • cyberealitycybereality Posts: 26,156 Oculus Staff
    @MartinSchultz : Yes, I see what you are saying. I will inquiry about this and see if we can find a solution.
    AMD Ryzen 7 1800X | MSI X370 Titanium | G.Skill 16GB DDR4 3200 | EVGA SuperNOVA 1000 | Corsair Hydro H110i
    Gigabyte RX Vega 64 x2 | Samsung 960 Evo M.2 500GB | Seagate FireCuda SSHD 2TB | Phanteks ENTHOO EVOLV
  • kojackkojack Posts: 5,894 Volunteer Moderator
    From ovr_atomic.cpp:
    Lock::Lock(unsigned spinCount)
    {
        // Try to load function dynamically so that we don't require NT
        // On Windows NT we will use InitializeCriticalSectionAndSpinCount
        static  bool initTried = 0;
        static  Function_InitializeCriticalSectionAndSpinCount pInitFn = 0;
    
        if (!initTried)
        {
            HMODULE hmodule = ::LoadLibrary(OVR_STR("kernel32.dll"));
            pInitFn     = (Function_InitializeCriticalSectionAndSpinCount)
                ::GetProcAddress(hmodule, "InitializeCriticalSectionAndSpinCount");
            initTried   = 1;
        }
    
        // Initialize the critical section
        if (pInitFn)
            pInitFn(&cs, spinCount);
        else
            ::InitializeCriticalSection(&cs);
    }
    
    In Winrt you can't call LoadLibrary, InitializeCriticalSectionAndSpinCount or InitializeCriticalSection.
    GetProcAddress still works (you need to get the library handle from LoadPackageLibrary, which won't load kernel32).

    There's InitializeCriticalSectionEx (which has a spincount). But it's only available on Vista and above.
    Then again, windows 8 metro apps can't run on older windows anyway, so if you build ovr for windows 8 metro then a define could replace all that code with InitializeCriticalSectionEx instead of trying to decide at runtime if the function is there.
  • EisernSchildEisernSchild Posts: 198
    Art3mis
    kojack wrote:
    From ovr_atomic.cpp:
    In Winrt you can't call LoadLibrary, InitializeCriticalSectionAndSpinCount or InitializeCriticalSection.
    GetProcAddress still works (you need to get the library handle from LoadPackageLibrary, which won't load kernel32).

    There's InitializeCriticalSectionEx (which has a spincount). But it's only available on Vista and above.
    Then again, windows 8 metro apps can't run on older windows anyway, so if you build ovr for windows 8 metro then a define could replace all that code with InitializeCriticalSectionEx instead of trying to decide at runtime if the function is there.

    Thx a ton, man. Without you i would have possibly searched hours for that ;-) Created a new Topic in the General Development section posting the code.
  • spire8989spire8989 Posts: 337
    Hiro Protagonist
    Does anyone actually use Metro? I use windows 8 but just immediately installed Start 8 to make it look the same as windows 7. Windows 8 and Windows 7 are pretty much the same.
  • kojackkojack Posts: 5,894 Volunteer Moderator
    I don't use win 8 and if I did I wouldn't use metro (I had to use it once on my aunty's laptop to install a new printer, horrible experience), but if you want to sell your stuff on the microsoft app store then you need to support it.
  • JoewaJoewa Posts: 26
    Brain Burst
    I use 8 and prefer it to 7, start menu included, though in practice I barely ever use Metro apps.
Sign In or Register to comment.