Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 16 Oct 2013
Online Last Active Today, 04:48 PM

Posts I've Made

In Topic: Rendering an object with multiple subsets

19 October 2016 - 01:21 PM

Do you have any idea why this is happening?

If it shows up twice, you're rendering it twice. Why is anyone's guess without code access.


My suggestion is to just put a breakpoint in the render function and see where it's being called from.

In Topic: Why is visual studio giving me a bunch of false errors?

14 October 2016 - 06:30 AM

All my headers files have #pragma once in them though, is it still possible to create a circular dependency?




If class A contains an instance of class B, and class B contains an instance of class A, you will run into problems, unless you can forward declare some stuff.

Only include in header files if you need to. If you can get away with forward declaring in headers and including stuff in the .cpp files, that's A Good Thing™.

In Topic: Improving collision query?

14 October 2016 - 04:44 AM

I tried checking collision on +2000 objects and my game dropped to 2 FPS from 5000 without any rendering...   I think this is the problem.

In addition to what Kylotan said...

1) Will your game have close to 2000 objects, or did you just try a high number to see? In your initial post you mentioned "hundreds". Every game can be slowed down to a crawl if you tell it to do too much. If the game is too slow at 2000+ objects, and fine at 200, that's fine if all you need is 200.

2) Don't guess where the problem is. Use a profiler (google if you aren't familiar), and know. Profiling will also allow you to measure and verify that changes you make actually help.

In Topic: Next Step

13 October 2016 - 05:53 PM

You were working on a game (previous post), and you shelved another one.

Try continuing one of those, and taking it to completion.

In Topic: Improving collision query?

13 October 2016 - 10:34 AM

As others have noted, it doesn't look like there's currently any performance issue, so this should be fine.

Mind me asking what the down-vote was for? =)


EDIT: Explained via PM that it was a misclick. No worries!