Jump to content

  • Log In with Google      Sign In   
  • Create Account

Banner advertising on our site currently available from just $5!


1. Learn about the promo. 2. Sign up for GDNet+. 3. Set up your advert!


Lactose!

Member Since 16 Oct 2013
Offline Last Active Today, 06:48 PM

Posts I've Made

In Topic: What are scene managers and how do they work?

29 June 2015 - 06:44 PM

Yes. The general advice given is to favor composition over inheritance where possible.


In Topic: Understanding D3D11 basics

29 June 2015 - 07:05 AM

What you pass through has to match what the shader expects to receive.

If the shader expects 2x Vector4 values per vertex (1 for position and 1 for color), then you need to supply that.

 

Different shaders can expect different things, for example a single vector position, and the color hard coded in the shader.


In Topic: Understanding D3D11 basics

29 June 2015 - 06:58 AM

In the original code, we have the following:

{
New Vector4(0.0F, 0.5F, 0.5F, 1.0F), //Position of 1st vertex
New Vector4(1.0F, 0.0F, 0.0F, 1.0F), //Color of 1st vertex
New Vector4(0.5F, -0.5F, 0.5F, 1.0F), //Position of 2nd vertex
New Vector4(0.0F, 1.0F, 0.0F, 1.0F), //Color of 2nd vertex
New Vector4(-0.5F, -0.5F, 0.5F, 1.0F), //Position of 3rd vertex
New Vector4(0.0F, 0.0F, 1.0F, 1.0F) //Color of 3rd vertex
}

Positions are in X Y Z.

Colors are in RGBA (Red, Green, Blue, Alpha). Alpha tends to mean translucency in shaders like this.


In Topic: Memory management patterns in C++

28 June 2015 - 04:56 PM


No commercial game engine uses garbage collection, but suddenly it's a great idea for someone making his own game engine? LOL
 
Unless I'm misunderstanding you, you're claiming that no game engine uses garbage collection. (The quoted sentence is a bit ambiguous depending on how one interprets sarcasm in text. It almost reads as if you're paraphrasing other posts, but I didn't get the same impression as what you post from any of the preceding posts.)
If you aren't actually claiming this, feel free to ignore the remainder of the post.
 
If you do claim this, though, it seems like a very bold claim. Would you care to share your definition of "a commercial game engine"?
As I see it, without looking up lists of engines and just going by what's on top of my head, both Unity3D and Unreal Engine 4 use garbage collection when you use them for development.
 
You previously disregarded the post about Unity3D, saying "There is a difference between using GC in a lnaguage that already has it, and implmenting it yourself.", which is true, but that also implicitly acknowledges that Unity3D uses garbage collection. More explicitly your follow-up posts also acknowledge Unity3D's garbage collection, even though you consider the engine to be "absolutely pathetic" when it comes to performance.
 
Unless you mean that the inner workings of game engines (by which I mean the parts you don't see while developing the game normally without looking at the game engine's source code) is made entirely without garbage collection.
That might very well be true, but even if it were true, I don't see how it matters when it comes to your claim.

---

I would agree that making your own garbage collection solution in C++ sounds like more effort and trouble than it's worth, though.

If you need a better solution than raw pointers, I would definitely look into just the "normal" smart pointers -- I would think they'd be enough for most use cases.

If you feel like they aren't, could you detail why not?


In Topic: Your thoughts on the value of profilers and debuggers?

27 June 2015 - 03:13 PM

<snip>

 

 
Normally, I'd refrain from posting in this manner, but seeing as you're spewing forth vitriol in public, I wanted to set something straight, which I feel invalidates quite large chunks of your post.
 
 
I reported your post.
 
I reported it, because I do not think rape jokes belong on gamedev.net's forums. The fact that you, despite having your post removed and being given an official warning, choose to repost it here doesn't paint a pretty picture of you in my eyes (although you might not care about what I think of you, which is completely fair!).
 
In my report, I also wrote I thought the thread needed some cleaning up, as it was starting to turn into personal attacks and insults. This was not directed (only) towards your post, but at least parts of your post were out of line, in my eyes.
 
In your chat log(?) quote, you seem to think you would be able to step up and defuse the situation. However, proof being in the pudding, you seem to be escalating it instead (based on both this post and the reported post in question).
 
I am not a moderator. Thus, I tend to report stuff if I see something truly inappropriate/objectionable, if I think replying to it might lead to more off-topic posts and noise, leaving the moderating to the moderators.
You are also not a moderator, but you still seem to think you should decide whether people are fit to be a member or not. You are not the final arbiter of who deserves to be here, even though you throw insults and swear at people when you see fit, behaving like you are both judge, jury and executioner.
 
That isn't to say I think Graelig's posts are beyond reproach -- I have reported several of his* posts if I found them to be purely trolling, insulting or objectionable, after which I leave it to the moderators to actually deal with them, instead of being some sort of forum vigilante.
 
Nor is it to say I don't respect a lot of the posts you make -- you have tons of experience and a lot of your posts provide insight which can both spark interesting discussion and help others (including me).
I do not, however, blindly accept everything you post as gospel. If you (or anyone else, for that matter), post rape jokes or something else which I feel crosses the line, I will continue to report it to moderators for them to deal with (unless they ask me to stop, of course).
 
 
*Gender assumed.

PARTNERS