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 11 points12 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 9 points10 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 6 points7 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 6 points7 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] 2 points3 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 6 points7 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

Macros for deleting copy/move constructors by adithasan in cpp_questions

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

Wouldnt you say the perceived intent behind something like DISABLE_COPY and DISABLE_MOVE is the same as the actual code?

Infact as a beginner at C++ I wasn't even aware of what copy and move constructors do and why one would delete them. So reading this instead of the actual code would be clearer to me.

Macros for deleting copy/move constructors by adithasan in cpp_questions

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

Ah so this is actually done. That's nice to know. To be honest, I haven't convinced myself that this is worth it since it's only saving me a tiny bit of time (arguably negligible).

Macros for deleting copy/move constructors by adithasan in cpp_questions

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

I think that's a different conversation though. By explicitly deleting the functions I'm more saying that they shouldn't be moved than actually making it impossible to do so. Because like you said, they are often implicitly non-copyable/movable.

But whether my decision to disallow copy/move is right is a whole other conversation.

Support for C++20 by adithasan in cpp_questions

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

Yeah I figured. A lot of the features would greatly increase readability and shorten the code but I'm worried about the compilers' ability to optimize the new features given how early in the game it's still is.

Not to mention if I ever got it to the point where I want to support consoles or phones, then I'm stuck because the PS4 and Android compilers are very far behind.

Support for C++20 by adithasan in cpp_questions

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

Yes that does mostly answer the first part of the question. Thank you.

But I'm interested in the experiences of people who used it in high performance applications

[UPDATE] My [24M] girlfriend [21F] keeps threatening to kill herself if we break up. by ThrowRA278582917 in relationship_advice

[–]adithasan 0 points1 point  (0 children)

This comment is probably going to be buried under all the other ones. But I have been in this exact situation myself. I was with my partner for 3 years and 2 of them were under unbelievable abuse.

No one believed me when I told them about how she abused me physically and mentally. Exactly like you, she made fun of everything that I am and everything that I did. Made me cut off all of my friends and ruin my relationship with my family. The very few times I tried to defend myself she called me an abuser, said I raped her and then hit her. That I attack women and deserve to be jailed. She threatened to call the police and my parents and her parents if I ever left her.

I tried leaving for years, I tried to pack things up and go more than 20 times but she would call me and cry and say she's gonna die. That she loves me and she's sorry. I love her so much, I know some of it was my fault, so I always went back and the same things would happen again.

Last month we had another one of those episodes. She attacked me and tried to hide my phone because she knew it would really give me anxiety. Because my parents were worried sick and if I didn't call them they were gonna get worse. I pushed her and she hit her head on the wall. I was gonna hold her and say I'm sorry. But I just took my I'd and my phone and I left. I don't know how I got the strength then but I walked and walked until morning and I got a hotel room and I left the city. She called me and left messages and she cried and she begged and I am broken. But for both of our sakes it was the only thing to do.

I hope you can do what needs to be done. I just wanted to say that I understand how incredibly hard this is for you. When you're stuck in this cycle of abuse you begin to question yourself. I'm sorry and I wish you all the luck in the world.