Jump to content

  • Log In with Google      Sign In   
  • Create Account

Alectora

Member Since 19 Oct 2007
Offline Last Active Yesterday, 08:29 PM

Posts I've Made

In Topic: Vulkan Swapchain Unable To Create

15 July 2016 - 01:17 AM

Oh geez. Apparently I made a mistake on matching the image extent. Since currentExtent already exists, I just need to refer it to the currentExtent by default and it solves the problem.

 

I can only define the extent when the currentExtent dimension is -1. If I define the dimension myself while the current extent exists (or not -1), it throws that error because they don't match! (Well, as jhenriques' tutorial said)

 

So this one:

Window* window = Global::stage->getWindow();

VkExtent2D extent = {};

extent.width = window->width;
extent.height = window->height;

if (surfaceCapabilities.currentExtent.width == -1)
{
... 

Should be roughly like this:

VkExtent2D extent = surfaceCapabilities.currentExtent;

if (extent.width == -1)
{
    Window* window = Global::stage->getWindow();

    extent.width = window->width;
    extent.height = window->height;
...

In Topic: Does Object Pooling with a Vector in C++ have problems with memory?

07 July 2016 - 07:18 PM

Correct me if I'm wrong, is your intention trying to manage the memory of the bullet for performance gain/avoid stuttering cause of heavy bullet allocations? Cause this looks like a common object pooling technique that only exists in managed languages like C# and others, where you can't explicitly manage your memory. If it is, you may want to learn a bit more about C++ memory management, things about memory pool, cause that'll probably solve your problem in the first place. If it isn't, please ignore my post.


In Topic: I need some help...

24 June 2016 - 10:07 PM

Stick with Python until you finish a few games. Within that few games (after the first ones), try making one that requires you to handle thousands of objects. It will help you scratch your head to learn how to handle the performance issues using practical algorithms exist. Try upgrading your games too to learn how to abstract things out.

 

Until you get the idea of practical data structures and algorithms and patterns, that's when you'll find yourself easy jumping to another languages when required, cause in the end they're basically the same. It's all about how you handle data.  :unsure:


In Topic: Now What For The UK ?

24 June 2016 - 09:46 PM

I am more worried on the value of GBP and Euro regarding to this. Some countries may suffer financial crisis (or worse if they already is) soon cause of the effect, which leads to other problems. Basically the condition becomes unstable cause of this issue, politically, economically, and financially.

 

If UK wants to leave and followed by other countries that are dominant in EU like Germany, what will Euro be?


In Topic: Recommended game engine for newbie wanted to do casual for browser and mobile?

22 June 2016 - 12:37 AM

Cocos2d-JS can go for both web and mobile native. Use Three.JS for 3D, and wrap it with Cordova + Crosswalk for mobile native. They are all cheap in file size and fully JavaScript based, which means you can use the web APIs with ease.


PARTNERS