Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 28 Apr 2008
Offline Last Active Today, 07:50 AM

Posts I've Made

In Topic: Array size and variables

31 October 2011 - 03:09 PM

I don't know if this was a typo but you wrote:

CustomVertex* vertices;

indices = new   CustomVertex[fSize*3];          // instead of vertices = new CustomVertex[fSize*3];

In Topic: Adding icon to my exe in Visual Studio 2008

28 October 2011 - 10:15 AM

Hello, try taking a look at ResEdit .

In Topic: Funky std::ifstream behavior [C++]

23 August 2011 - 11:33 PM

Hello! Maybe your problem is in the way you open your file. You use an ifstream so you don't have to specify ios::in, because it opens it for reading anyway. And instead of || you would have to use the single |.

Try it like this:

std::ifstream file(filepath, ios::binary);

I don't really know if this will help you but you can give it a try.

In Topic: D3DXCreateTextureFromFileEx root file path

22 August 2011 - 04:38 AM

Hi! Usually, if you place your resources (files, images etc...), in the folder where your executable is located, the application will find them. You don't have to specify the whole path then, just the name of the resource.

In Topic: Cut down on memory usage

20 August 2011 - 04:22 PM

If your game is laggy on someone else's computer, maybe memory usage is not the problem. You are loosing speed somewhere. You should identify where this happens (usually in the update or render methods). Maybe you're doing things like loading textures every frame. You can use a profiler to see where you are loosing speed.