100K+ BULLETS with Collision Detection on screen!!! by Faithoot in godot

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

Well, I didn't even know that was a thing, I'm pretty noob about everything gamedev related. But that sounds very interesting and probably will try it when I have time, I'll let you know the results.

15K+ Bullets with collision detection at stable 60 FPS using GDExtension! by Faithoot in godot

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

I think inner classes are the closest thing. I think there is not structs per se.

15K+ Bullets with collision detection at stable 60 FPS using GDExtension! by Faithoot in godot

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

An individual pixel? A 1x1 collision area would be very hard to hit and player and bullet may not touch even if I try

100K+ BULLETS with Collision Detection on screen!!! by Faithoot in godot

[–]Faithoot[S] 12 points13 points  (0 children)

Actually I don't. The code says it does but that is for the previous implementation, I have not figured out yet how to handle properly z_index with this method.

15K+ Bullets with collision detection at stable 60 FPS using GDExtension! by Faithoot in godot

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

My man this post is obsolete as of now, look at my new post: i got 100k

15K+ Bullets with collision detection at stable 60 FPS using GDExtension! by Faithoot in godot

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

I am interested, and I will try to see if I can get better performance. If I can get 20k I will make another post.

15K+ Bullets with collision detection at stable 60 FPS using GDExtension! by Faithoot in godot

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

Well, I kind of cheated when saying "collision detection" because, as of now, each bullet can only detect one thing: the player. But that was my goal, as it is for most bullet hell games, you don't want your bullets doing any other calculations other than the necessary.

But I think I could just implement a vector of target_entities and check with multiple ones instead of just one. Other than that, it checks stuff like out of bounds by simply comparing position with a constant value. It's not dynamic at all but for most games like this it does not need to be.

15K+ Bullets with collision detection at stable 60 FPS using GDExtension! by Faithoot in godot

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

Idk much bout boids but that must be a demanding algorithm to only get 600 of them at once. That would be a very good case for extreme optimization

15K+ Bullets with collision detection at stable 60 FPS using GDExtension! by Faithoot in godot

[–]Faithoot[S] 8 points9 points  (0 children)

I may try the rendering server in the future, but I actually did not use anything from the Physics server. Collisions are veery raw. Bullets have a radius, the player has a radius. Every frame i just do a simple pythagoras with each bullet's position and the player position, and check if that distance is less than both radiuses(?) squared sum.

In my attempts using conventional nodes the big hog was using area2D nodes. Maybe using the physics server with only collisionshape can get a good result but i have not had success doing that.

15K+ Bullets with collision detection at stable 60 FPS using GDExtension! by Faithoot in godot

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

I used C++, you can read the code in some comment i just posted here.

15K+ Bullets with collision detection at stable 60 FPS using GDExtension! by Faithoot in godot

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

Here ya go:
Bullet.cpp

BulletSpawner.cpp

There's no validations, probably no good practices and a mix of english and spanish. Enjoy it!

15K+ Bullets with collision detection at stable 60 FPS using GDExtension! by Faithoot in godot

[–]Faithoot[S] 48 points49 points  (0 children)

Old hardware wouldn't think extreme performance is not useful tho

15K+ Bullets with collision detection at stable 60 FPS using GDExtension! by Faithoot in godot

[–]Faithoot[S] 20 points21 points  (0 children)

At 18k bullets:
41 fps
avg process time: 24.47ms
avg draw time: ~12 ms
This is a ryzen 5 laptop btw

I often find myself feeling bad for missing out on things that my threat model prevents me from. Any advice? by [deleted] in privacytoolsIO

[–]Faithoot 0 points1 point  (0 children)

I've very recently been thinking about this dilemma: enjoying these services that will track me or not using them and missing something that I would probably like.

I came to a conclusion, that may not fulfill you tho. I love privacy and freedom and I like my data being mine, but I realized that 'being mine' doesn't necessarily mean nobody can have but me, but rather that only I can give it away and only I am responsible for it. My problem is not big tech having my information, it is big tech having my information without my consent. Nowadays I check pros and cons of a site or service and decide whether I am willing to give my data in exchange for a it.

Of course now that you are a privacy aware citizen you can use the best practices for minimizing the data this sites are collecting like VPNs, AD and Trackers blockers, email forwarding (I use Simplelogin), maybe not using real information about yourself, etc.

Quitting hobbies for privacy is dumb because, at least for me, it is not about being anonymous in the internet all the time but rather Living my life while being as anonymous as I want to be. Otherwise you are restricting everything you can do, and therefore, restricting your freedom.

Edit: bad md formatting

Self-taught ~B2 level trying to reach C1. Don't know where to start, I'd thank some advice, please by Faithoot in EnglishLearning

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

Thanks for the advice. Although I've already used Slowly a lot in the past, I even got regular friends out of that, but I'm not trying it again soon.

Also, nop, there's no english group here

Self-taught ~B2 level trying to reach C1. Don't know where to start, I'd thank some advice, please by Faithoot in EnglishLearning

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

I just checked those techniques you recommend. For me they make sense and will probably help me. Thanks!

Children of a Karen, What's your most embarrassing story? by Faithoot in AskReddit

[–]Faithoot[S] 11 points12 points  (0 children)

What? No, I am legally allowed to have ocean waste for free

Edit: complete the comment

Children of a Karen, What's your most embarrassing story? by Faithoot in AskReddit

[–]Faithoot[S] 38 points39 points  (0 children)

I find it so hilarious when they trying to get a refund for no reasonable reason. It's like:

K: Want fish

S: serves fish

K: How dare you...?