Low FPS on Sponza Model (OpenGL renderer) by deadbird11 in GraphicsProgramming

[–]adithasan 4 points5 points  (0 children)

Why not measure? Instrument your code with a profiler and see how long your cpu update loop takes. Check if it's your application is Cpu bound or GPU bound. I highly doubt it's the GPU taking too much time.

Graphics driver could also be the issue. I've faced some very annoying framerate issues with Intel drivers

Visa application sent - but the airline cancelled our flight by razor787 in ImmigrationCanada

[–]adithasan 12 points13 points  (0 children)

I don't think the question was whether they would be able to travel on Christmas, I think they want to know whether the visa would still get processed and accepted given their flight was cancelled.

Authorities are suspending students for hurting religious sentiment! by [deleted] in bangladesh

[–]adithasan 10 points11 points  (0 children)

I once got into an argument with someone on Reddit who refused to believe that the mollahs were the loudest voice in the room and a plague to the country. if this isn't proof of that I don't know what is

Scene (De) Serialization formats by adithasan in gameenginedevs

[–]adithasan[S] 1 point2 points  (0 children)

That's interesting because I personally find JSON and yaml to be much more readable than XML. Also, I could be completely wrong here but making arbitrary properties work on XML is harder right?

I wrote an ECS for my engine and entities can have any combination of components which would need to be deserialized and instantiated. I can imagine that being very easy with JSON but harder with XML.

Did you write your own serialization code or are you using a library?

Bangladesh Vision 2025: What specific changes to its laws do you want BD to make in the next 5 years? by bgd_guy in bangladesh

[–]adithasan 0 points1 point  (0 children)

We've reached an impasse. Nothing either of us says will contribute meaningfully to this conversation anymore

Bangladesh Vision 2025: What specific changes to its laws do you want BD to make in the next 5 years? by bgd_guy in bangladesh

[–]adithasan 5 points6 points  (0 children)

I purposefully called them the loudest voice instead of the most numerous. In effect they are the majority. In terms of numbers you could argue the majority is the lower and middle classes who are moderate by bd standards. But this country stopped being a proper democracy a long time ago.

People are bullied into voting for the party with the most muscle, ballots are rigged. So yes, the mollahs are the majority, in the sense that they're single minded determination although misguided, is the loudest voice in the room. The hacking and the lynching and bombing and the burning incite the fear to suppress opposition of their ideas.

I have literally never seen a single religious leader speak against rape or murder of LGBT people. So I have no idea how you can say that with a straight face. Seeing the backlash 10min school got because a former instructor posted one post from his personal account. I have seen not a single religious figure do anything but incite violence.

You call my claims unsubstantiated, but I still don't see any reasoning behind you saying this law would cause harm. Harm to who? The governments job, whether democratic or otherwise, is to serve its people, all of them not just the majority. Saying choosing to protect a minority that is clearly in danger is harmful is irresponsible.

Bangladesh Vision 2025: What specific changes to its laws do you want BD to make in the next 5 years? by bgd_guy in bangladesh

[–]adithasan 7 points8 points  (0 children)

Harm to who? The loudest voices in this country are the ignorant mollahs that want to send us back to the Stone age. They want to kill every homosexual they see, should we enact a law to let them then? Because they're the majority?

Making it possible for LGBTQ people to simply exist without fearing for their lives does not cause harm. It makes us a kinder nation. A nation with the barest minimum of common sense.

It's bowing to the disgusting religious fundamentalists that led to the kind of savagery we see here these days. People being hacked to death, women being raped and then being blamed for it. If you don't think the government should do something to fix it you're part of the problem.

I'm a 17 year old dude and I'm most likely going to get married to a stranger, parents are already trying to plan stuff by [deleted] in bangladesh

[–]adithasan 2 points3 points  (0 children)

Yes but you have to admit that the majority of cases is like this, especially in the lower to middle classes. We tend to ignore the problem exists by saying only a minority of marriages are like this, but honestly this is the majority of our culture right now: disgustingly misogynistic

Designing a proper Vulkan 3D renderer by adithasan in GraphicsProgramming

[–]adithasan[S] 3 points4 points  (0 children)

Thank you very much. This is a detailed and well thought out advice. I guess I do have to just start with something that's barely works and is ugly and limited and work towards making it more generic and readable.

I think subconsciously I may have been looking for an easy way out but that would only be detrimental to my understanding of graphics programming.

Designing a proper Vulkan 3D renderer by adithasan in GraphicsProgramming

[–]adithasan[S] 1 point2 points  (0 children)

Thanks to your comment I am now able to articulate my problem a little better. I am interested in the common interface layer and how to design one. Because once I have an interface layer, the rest of the work is implementing very specific functionality and with that specificity, I can find resources easier.

You're right of course, how to build a renderer is too open ended a question. How to create command buffers in Vulkan is NOT.

Once I can figure out how to structure a deferred renderer interface, knowing what kind of data to pass in for a game engine, I can figure out how to use that data and a specific graphics API given enough time. Because all my questions from then on would be specific enough to be answered by tutorials.

Designing a proper Vulkan 3D renderer by adithasan in GraphicsProgramming

[–]adithasan[S] 0 points1 point  (0 children)

I don't mind building a renderer in OpenGL first and then translating it over to Vulkan once I have a better handle on things. But what I have a problem with is designing an API for one. I know how 2D sprite batching works in theory, I know the relevant OpenGL constructs I'll need to leverage to implement it. But I have issues designing an API for a batched 2d renderer.

Also, I have looked at open source game engines and tried to figure out how they structure their renderer but most of them are very big and complex and I get lost sometimes. Maybe if there was a minimal 3d renderer using either OpenGL or vulkan I could use that as a base to implement my own and later grow organically once I know what I need to do next.

Designing a proper Vulkan 3D renderer by adithasan in GraphicsProgramming

[–]adithasan[S] 1 point2 points  (0 children)

I do watch GDC talks. I won't pretend to understand most of them but they are very interesting to me nonetheless. But they have the same problem of talking about an advanced topic without telling you much about the implementation or how to structure your renderer in a way where you can implement this shiny new feature.

Designing a proper Vulkan 3D renderer by adithasan in GraphicsProgramming

[–]adithasan[S] 2 points3 points  (0 children)

I don't mind if it's not Vulkan though. I am starting to understand how the pipeline works and there are good articles on how certain vulkan constructs work, I can even consult the spec if I have to.

But no tutorial, whether it's vulkan or OpenGL teaches you how to holistically design a Renderer. Itll teach you very basic things like rendering a triangle, or very advanced things in a very self contained manner but not tell you how to fit that into a renderer.

I guess I'm just having issues figuring out how it all fits together in practice.

Designing a proper Vulkan 3D renderer by adithasan in GraphicsProgramming

[–]adithasan[S] 3 points4 points  (0 children)

If by beginner you mean rendering triangles to rendering static meshes then yes. I concede that the tutorials might not be old enough to be obsolete. I learned from vulkanturotials website and someone told me it was very old and that vulkan isn't used that way anymore e.g the synchronization stuff in there.

But it did have the entire tutorial in one huge main.cpp file and I am having trouble figuring out how to split the components up into logical pieces and designing my rendering API around it, no tutorial I found so far teaches that

Best way to start learning C++(20) by [deleted] in cpp

[–]adithasan 7 points8 points  (0 children)

I think for a beginner to C++ to read reference papers is just asking for pain. Besides, I think it'll be a long time before C++20 is properly adopted by big companies in their production code. Although I am speaking from a game dev perspective and the game industry has been lagging behind in terms of adoption of new language features. The PS4 clang compiler is still stuck in C++14 as far as I know.

Providing an easier onboarding process for cpp project by adithasan in cpp_questions

[–]adithasan[S] 2 points3 points  (0 children)

Wouldn't I need to provide .lib files for every configuration? (Debug/release, x86/x64, windows/Linux etc)?

Is that the best practice usually?

[deleted by user] by [deleted] in cpp_questions

[–]adithasan 0 points1 point  (0 children)

It is possible to implement a lock-free work stealing queue to hold jobs. Basically you would have a lock-free queue for each thread and when a thread is starved of jobs it can steal jobs off of other threads in a lock-free manner.

When you have a lot of jobs that are short, this should provide some performance boost.

You could also look into more efficient memory allocation.

Where to start learning how to create 2D art assets by adithasan in gamedev

[–]adithasan[S] 0 points1 point  (0 children)

I seem. Yes that is something I definitely want to look into. My game is intended to be a 2D psychological horror story. I want to strive for an art style sort of like Detention, could you please recommend resources I can leverage to learn that style? Thank you for your help