Question about initialization in GameCode4

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • Question about initialization in GameCode4

      Hi everyone,

      I was hoping someone could shed some light on a question I have.

      I was going through the newest code from the repository and something struck me that doesn't seem to be explained in the book or anywhere else that I could find, for that matter.

      Why is sdkmesh files only preloaded if the engine is in DirectX 11 mode? I've been scouring the web to find a reason as to why you'd only preload in DX11 and not in DX9, but I haven't found any that makes sense to me.

      Source Code

      1. if ( GameCodeApp::GetRendererImpl() == GameCodeApp::Renderer_D3D11 )
      2. m_ResCache->Preload("*.sdkmesh", NULL);


      Now I'm hoping one of you could shed some light on this mystery :)

      Thanks in advance and thanks Mr.Mike and Rez for an incredible book!

      The post was edited 1 time, last by ReqPro ().

    • .sdkmesh is not supported by D3D9 I guess, this is what it says in Mesh.cpp line #71
      PC - Custom Built
      CPU: 3rd Gen. Intel i7 3770 3.4Ghz
      GPU: ATI Radeon HD 7959 3GB
      RAM: 16GB

      Laptop - Alienware M17x
      CPU: 3rd Gen. Intel i7 - Ivy Bridge
      GPU: NVIDIA GeForce GTX 660M - 2GB GDDR5
      RAM: 8GB Dual Channel DDR3 @ 1600mhz
    • No problem, and welcome to the forums, it has been slow around here lately, but feel free to ask questions as I frequent the boards still.
      PC - Custom Built
      CPU: 3rd Gen. Intel i7 3770 3.4Ghz
      GPU: ATI Radeon HD 7959 3GB
      RAM: 16GB

      Laptop - Alienware M17x
      CPU: 3rd Gen. Intel i7 - Ivy Bridge
      GPU: NVIDIA GeForce GTX 660M - 2GB GDDR5
      RAM: 8GB Dual Channel DDR3 @ 1600mhz