blackhole12

- friends
1,149 link karma
177 comment karma
send messageredditor for
what's this?

TROPHY CASE


  • One-Year Club

fake@email.com by notpandorain webdev

[–]blackhole12 0 points1 point ago

Not all small companies.

Multithreading Problems In Game Design by blackhole12in programming

[–]blackhole12[S] -1 points0 points ago

Well tell that to the other people who are saying it does matter :3. I'm staying out of that argument - I just say whip out a profiler and see what happens.

Multithreading Problems In Game Design by blackhole12in programming

[–]blackhole12[S] -1 points0 points ago

The operating system does. Most programs do not, because its not usually important. However some have raised concerns about overloading the physical cores, so clearly one should do profiling to determine the ideal number of worker threads given a hyperthreading scenario.

Multithreading Problems In Game Design by blackhole12in programming

[–]blackhole12[S] 0 points1 point ago

Are you referring to the initial, broken multithreaded implementation? It only has two threads, so you can't do meaningful measurements with it. I was talking about how I haven't implemented concurrency using worker threads inside the graphics and physics engines.

(C++)What's a good modern low level graphics library? by cosmicrin gamedev

[–]blackhole12 4 points5 points ago

Modern graphics cards don't usually support this anymore, you have to emulate it. You can either use a set_palette function and hope the graphics driver will emulate it properly, or do it yourself. I created a pixel shader that performed basic palette manipulation using ps.2.0: video.

Multithreading Problems In Game Design by blackhole12in programming

[–]blackhole12[S] 0 points1 point ago

Good question. I haven't actually implemented any concurrency, so I have no idea. Once I actually implement it, however, I would of course measure the effectiveness of various worker thread counts, which would likely be a blog by itself.

Multithreading Problems In Game Design by blackhole12in programming

[–]blackhole12[S] 2 points3 points ago

That's extremely context-dependent. A particle engine, for example, relies very heavily on cache-coherency, whereas a bunch of images typically aren't anywhere near each other. I actually have written multiple custom memory allocators to help enforce locality for certain tasks in my graphics engine and I know Box2D uses a custom memory allocator to help with memory locality, but I don't know what advanced AI or networking would do.

Multithreading Problems In Game Design by blackhole12in programming

[–]blackhole12[S] 5 points6 points ago

No, because each one is dependent on information from the other. The physics is dependent on AI, and the render is dependent on physics. If you wait for each of the required components to finish before going to the next one, you end up with a single thread. You can get away with calculating audio after the physics finishes, because audio and graphics are exclusive, but that's about it.

Multithreading Problems In Game Design by blackhole12in programming

[–]blackhole12[S] 15 points16 points ago

Because they are excellent when served with basil. =:3

But really, I have no idea.

Multithreading Problems In Game Design by blackhole12in programming

[–]blackhole12[S] 1 point2 points ago

It's on the to-do-list. My graphics engine probably doesn't need to be parallelized for a while because it offloads most of the computation to the GPU. Box2D on the other hand would greatly benefit from parallelization, but seeing as it's not my code and I suck with physics, it will be stupendously difficult to figure out how to process the contacts concurrently and efficiently without violating some rule I'm unaware of and invalidating the physics calculations.

If I ever do figure it out I will of course write about it.

Multithreading Problems In Game Design by blackhole12in programming

[–]blackhole12[S] 11 points12 points ago

I think that is a question best answered by profiling.

Multithreading Problems In Game Design by blackhole12in programming

[–]blackhole12[S] 15 points16 points ago

Yes, but from the software's point of view, this is immaterial - it sees 8 logical cores and has no idea which ones are physical and which aren't. Regardless I added a footnote clarifying this.

Reddit, my friends call me a scumbag because I automate my work when I was hired to do it manually. Am I? by CS-NLin AskReddit

[–]blackhole12 0 points1 point ago

If a company does not reward you for this, they are not forward thinking. Period. Keep in mind that some departments in very large companies can be more forward thinking than others.

This is all I could think about during my final exam... by Jackstickin funny

[–]blackhole12 0 points1 point ago

Actually, I almost never attend class in the first place, so this only happens about 2 times during the entire quarter. If I'm actually going to be there the entire time, I do not pick an aisle seat. Also, I was almost always 1 minute late, so you would have gotten there first anyway. Hence, I have always made an effort to avoid doing it, but it has still happened a couple of times, so really you should spend more time complaining about the guy up there who does it over and over.

This is all I could think about during my final exam... by Jackstickin funny

[–]blackhole12 1 point2 points ago

I have a preference for sitting right by the isle so I can make a quick escape out of lecture. This occasionally results in me accidentally getting a lefty seat. I will sometimes move, but being at the UW, usually the whole place is nearly full at that point.

Spent $540 on textbooks this semester. This is what I got back on textbook buy back for them.. by qungfuin WTF

[–]blackhole12 0 points1 point ago

http://www.bookrenter.com/, it works. Use it. Your wallet will love you forever. Just be careful about when you buy them, the shipping dates can get wonky and usually take about a week to 10 days to actually arrive.

New Search and Replace RegEx for Visual Studio: Because (?<a>\b(_\w+|[\w-[0-9_]]\w*)\b) is so much better than {:i} by grauenwolfin programming

[–]blackhole12 2 points3 points ago

Oh I already bitched about that. I think it satisfied my bitching quota for the day.

An interesting journal entry. by thrahthrahthrowawayin SuicideWatch

[–]blackhole12 0 points1 point ago

Go travelling somewhere. Anywhere. I probably don't know what I'm talking about but it seems like you're stuck in a very unfortunate microcosm of humanity that is... not very healthy for you. There is /so much stuff/ out there to get interested in, things to be curious about, places to explore, things to do. If anything, maybe you could find something more meaningful for you to work on.

I really don't think anyone ever "should" be happy based purely on where they stand. What really matters is finding something that means something to us. All the good fortune or bad fortune melts away once you find a purpose, something to do, something that really resonates with you, and the absolute best way to find that is to just go traveling. Without that, we are... lost.

view more: next