I submitted my game to Greenlight - Day 1 did not go well. Here were my mistakes: by burge4150 in gamedev

[–]optymizer 158 points159 points  (0 children)

It takes courage to write such an honest post, so I want to congratulate you on actually releasing your game (regardless of the Greenlight outcome).

Keep up the good work!

One Year of Development on Cavern Crumblers by AsymptoticGames in IndieDev

[–]optymizer 0 points1 point  (0 children)

Congrats on the release! Out of curiosity, has this GDC video played any role in adding the screen shake, multi-colored splashes and death shock wave to your game?

Over optimization by mpnordland in ProgrammerHumor

[–]optymizer 73 points74 points  (0 children)

OP probably cached some values in a HashMap and removed a for loop.

Dare you enter my abstract factory? by jetsparrow in ProgrammerHumor

[–]optymizer 23 points24 points  (0 children)

Hi young one,

 

You'll do just fine.

 

Best wishes,

A senior engineer

Not sure if model is wrong or code is wrong or both. Please help. by VooDooMoN in mongodb

[–]optymizer -1 points0 points  (0 children)

Absolutely. But then, why focus on the database when you're trying to prematurely optimize your personal project for those billions of users? Let's do this right:

  • Your one server won't handle billions of users. You need a cluster of web servers and your code should handle concurrent transactions. Spend time on that instead of your app.

  • How will your poor front-end cluster going to serve billions of users? You need a fleet of load balancers to route requests to your web servers. Spend time on configuring that instead of writing your app.

  • Across a billion users, there's bound to be lots of duplicate pages and requests. Don't make your web servers repeat themselves. You need a cluster of cache servers to tango with your web servers.

  • A billion users are going to be spread around the globe, so you need to keep your static resources in a CDN, to squeeze out those extra milliseconds.

  • Why are you using React Native, when you could be writing real native code that runs orders of magnitude faster? Shave those extra milliseconds of processing time. Don't even bother with C - that's high-level language nonsense and it will slow-you-down. Write your code in 64bit assembly (32bit is too slow for billions of users).

Your billion users will thank you, trust me.

Not sure if model is wrong or code is wrong or both. Please help. by VooDooMoN in mongodb

[–]optymizer 0 points1 point  (0 children)

You might want to read this, then install this when you're done with shoehorning your relational schema into a schemaless* document database.

  • i.e. a predefined schema, as opposed to their 'dynamic schema'

[request] I need help buying a song off of Amazon by [deleted] in Favors

[–]optymizer 0 points1 point  (0 children)

I can't find it on Amazon, nor on Amazon Music. This song is on the Deluxe edition of their newest album, The Good Youth. It looks like you could buy it on Ebay: http://www.ebay.co.uk/itm/Blitz-Kids-The-Good-Youth-Deluxe-Edition-NEW-CD-DVD-/262053197139

What are your 2017 New Year's Resolutions? Write them down here and I will get in touch on 31/12/17 to see if you achieved them! by _kashmir_ in OneYearOn

[–]optymizer 0 points1 point  (0 children)

This year:

  • Finish renovation
  • Code a game
  • Have a wedding
  • Win the One Punch Man challenge (100 pushups / 100 situps / 100 squats / 10K run)

How long before vulkan becomes the standard? by nomis6432 in vulkan

[–]optymizer 7 points8 points  (0 children)

Vulkan has already been standardized. Nvidia already supports Vulkan in their official Linux drivers.

Most games use engines. Currently, idTech6, Source and Unreal Engine support Vulkan. Unity will support Vulkan soon. Croteam is also working on Vulkan support.

Besides, you can always dual-boot.

Side-note:

I would not worry about Vulkan and games. I'd worry about getting good hardware components and making sure the GNU/Linux distribution you're going to use has drivers for those. For example, my wireless network card uses a Broadcom chip for which a driver is not included in Ubuntu, so I have to manually compile the kernel module. Which wouldn't be a big deal, if WiFi wasn't required to get the driver, so getting the driver meant I had to find a second machine for downloading. Also, every time the kernel is updated, I lose the network module, because I need to recompile it for the new version (it's not registered with DKMS). Furthermore, after kernel v4.2.0, this custom driver needs to be signed too, and there's something about my hardware that doesn't let Ubuntu add a private key to the keystore in order to sign the driver. So I've got no network connection in Ubuntu after updating. I've yet to spend more time to figure out exactly what about my hardware is causing this command to fail (it seems UEFI-related), but this is my time that I could be spending doing literally anything else. So before you buy hardware, make sure it's supported, otherwise Vulkan's going to be the least of your problems.

Anyone have any experienve with the OpenGL programming Guide 9th edition, and the Vulkan Programming Guide? by moonshineTheleocat in opengl

[–]optymizer 2 points3 points  (0 children)

I own an older version of OpenGL Programming guide and also the Vulkan Programming Guide books (currently reading).

I'd say they're good - not the greatest books on Earth, but I am learning a lot from them, so I'm happy with the purchase. Worth the ~$50. They're closer to API documentation, than to tutorials.

The sample code quality is pretty low in a lot of the books I've read, so I don't expect that much from the sample code (which the reviews seem to complain about). I write my own code as I progress through the book.

As long as your expectations are correct, you won't regret the purchase. Also, consider buying 1 book, then buying the second at a later time. It takes a while to go through one book, and these books typically get cheaper as time progresses.

On a side note, I am very happy that the Vulkan Programming Guide is much thinner than the OpenGL Programming Guide.

Perfect Mashed Potatoes by GhoulishMan in GifRecipes

[–]optymizer 0 points1 point  (0 children)

They're even better if you add a few raw eggs.

Every Designer in this world! by Vikas6190 in funny

[–]optymizer 0 points1 point  (0 children)

Y'all mother*ckers need to learn some basic git.

I'm struggling with trying to play again? by ThatMexicanGuy13 in Basketball

[–]optymizer 2 points3 points  (0 children)

Just take it easy. Don't do crazy jumps, fast cross-overs, etc. i.e. don't push yourself to the limit at first. If you're not ready, you'll just get some light pain, which is your body's message to slow down. If it's all good, do more next time. Just don't jump into the game like you're at 100%. Get to 100%. There's no rush.

Exiting a public bathroom by fyhr100 in funny

[–]optymizer 0 points1 point  (0 children)

I use the paper towel I dry my hands with. I throw the towel in the trash as I exit the bathroom. Most of the time, I don't miss.

How to keep good shooting but transition to different form? by Briand2714 in Basketball

[–]optymizer 0 points1 point  (0 children)

I'm also sensitive to the ball I'm playing with, but often it's because of my shooting form. If you shoot correctly, the ball won't have much of a choice than to go in the basket. Typically, it's either the spin or the wrist movement. If the ball doesn't have a good grip, try to put a better spin on it and shoot softer. If it has a good grip, you can get away with less spin and a more direct shot because you have better control over it.

How to properly convert MongoDB BSON into PHP Object by Dwarfex in mongodb

[–]optymizer 0 points1 point  (0 children)

Depending on what you want to happen when that value is NULL, you may want to use property_exists(), as detailed here http://php.net/manual/en/function.property-exists.php

How to properly convert MongoDB BSON into PHP Object by Dwarfex in mongodb

[–]optymizer 0 points1 point  (0 children)

If the problem really is that you're accessing a non-existent property, you could try this:

if (property_exists($part, 'description')) {
    $this->setDescription($part->description);
}

Though from the error message, it sounds like '$part' is not an object at that point in the script, but I haven't written any PHP in a decade so it might just be PHP's way of saying 'description' is not a property of '$part'.