Jump to content

  • Log In with Google      Sign In   
  • Create Account

We're offering banner ads on our site from just $5!

1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


Ripiz

Member Since 29 Aug 2009
Offline Last Active Nov 03 2012 02:09 PM

#4995177 MSVC 2010 vs MSVC 2012 - Performance question.

Posted by Ripiz on 29 October 2012 - 04:16 PM

VS2012 has better syntax highlighting than VS2010; classes, namespaces, typedefs have colors now.
I imagine VS2012 would be a little bit better than VS2010, afterall it's newer, so I guess it might have better auto-vectorization, new C++11 features (move, etc) should make it better as well.

IDE itself is responsive. No problems that I haven't had with VS2010, sometimes random freezes, intellisense messing up, etc. Restart fixes it most of the time.


#4991427 [D3D11] D3D11 and D3D_FEATURE_LEVEL_10_0

Posted by Ripiz on 18 October 2012 - 07:53 AM

You can compile it on any PC. Running is other problem.


#4991383 A "What's Next" Networking Question

Posted by Ripiz on 18 October 2012 - 03:47 AM

There's no way to connect if your address is dynamic. You need something static. The only thing that comes to my mind, use free website host or file host that allows direct linking (Dropbox for example), store .txt file that contains your current IP address. Client program could automatically load the page, copy address and connect to it. But you'd have to change it manually everytime your IP changes (unless you make another tool which would do that automatically).


#4991081 Overflowing Buffers!

Posted by Ripiz on 17 October 2012 - 05:02 AM

Use bigger buffer or use dynamic buffer which increases everytime it overflows. Eventually it'll reach max size when it stops overflowing, however it might end up eating whole RAM if you have bug somewhere.


#4991079 High-poly model XNA 10 FPS !

Posted by Ripiz on 17 October 2012 - 04:59 AM

When you draw something CPU validates whether you have set correct Vertex Buffer, Index Buffer, Shaders, and all other states.

When you don't draw anything you're basically spamming GPU with command "Show this on the monitor". It probably hits memory bandwidth limit because it attempts to copy your frame everytime.


#4990663 C++ Compiler and IDE

Posted by Ripiz on 16 October 2012 - 03:24 AM

Personally I'm using Visual Studio 2012 and I believe it's best what you can get on Windows.


#4988352 IDE most comparable to VS

Posted by Ripiz on 09 October 2012 - 08:10 AM


while VS2012 also colors #defines, classes, structs, typedefs, there is possibility to configure appearance of methods, local variables, fields, params/args, global variables.

Which is what the average open source IDE had for a couple of years already...


Not sure in what kind of dream you live, but last time I tried NetBeans and Eclipse it colored only language's keywords.


#4988014 IDE most comparable to VS

Posted by Ripiz on 08 October 2012 - 09:19 AM

Visual Studio 2012 IDE is much better. Eclipse/Netbeans are only comperable to Visual Studio 2010 (it had only keyword coloring), while VS2012 also colors #defines, classes, structs, typedefs, there is possibility to configure appearance of methods, local variables, fields, params/args, global variables. I've Googled a lot but VS2012 is best you can get, and it's even free for 'basic' version.


#4987348 Still confused about "static"

Posted by Ripiz on 06 October 2012 - 02:45 AM

You can use static variable to count number of class's instances:
struct Foo {
    static unsigned int instanceCounter = 0;
    Foo() {
	    instanceCounter++;
    }
    ~Foo() {
	    instanceCounter--;
    }
};
Why would you need that is other question.

static method can be used in singleton pattern:
struct Foo {
    static Foo& GetInstance() {
	    static Foo instance;
	    return instance;
    }
};



#4984814 Visual Studio Express 2012 Yay

Posted by Ripiz on 28 September 2012 - 12:31 PM

Why you weren't using VS 2010?

OpenMP is quite advanced feature, I wouldn't put up too much hopes it would be free.

Afterall, VS 2010 Express did NOT have button "Open Solution Folder", you had to navigate manually in the Explorer, seriously Microsoft?


#4984468 [Win32] [solved] CreateWindowEx returns error 1407

Posted by Ripiz on 27 September 2012 - 01:45 PM

Your parameters are in wrong order, window's title and class's name to be precise, see MSDN: http://msdn.microsof...0(v=vs.85).aspx


#4982885 WTF Moment: Pixel shader problem?

Posted by Ripiz on 23 September 2012 - 05:42 AM

output.normal = mul( input.normal, _wvp );
You need to transform normal by inversed transposed world matrix. But if it doesn't contain scaling, it'll be equal to float3x3 part, meaning you can just typecast.
If you transform by view and/or projection it has other meaning, and it breaks your point light.


#4982717 can't initialize directx 11

Posted by Ripiz on 22 September 2012 - 02:10 PM

Yes, you can continue tutorials. The only limitation I know is you cannot use Shader version 5.0. But most likely that won't be a problem at all.


#4975561 Java Syntax Question

Posted by Ripiz on 01 September 2012 - 03:57 PM

#1 and #2 have the same answer.
Firstly first names are compared, if they are equal it compares last names and returns result, otherwise just nameComp is returned (which is comparison of first names).


#4974898 Linkage Woes

Posted by Ripiz on 30 August 2012 - 02:02 PM

If you're not actually using functions it won't need to link anything, therefore no link errors.

Also if you setup dependencies under "Common Properties" it'll link automatically.




PARTNERS