Search found 49 matches

by reductor
February 8th, 2017, 9:09 pm
Forum: Everything
Topic: Some benchmarking tests
Replies: 9
Views: 3549

Re: Some benchmarking tests

These threads on performance are becoming quiet concerning because alot of them are wrong, incorrectly tested, not accounting for 'real data', I suggest you avoid following this optimization route until you actually hit a problem, otherwise your going to end up with some messy code that will likely ...
by reductor
January 27th, 2017, 10:09 am
Forum: Everything
Topic: Which of these examples is better?
Replies: 8
Views: 3217

Re: Which of these examples is better?

Alot physics engines are designed around a few phases * Calculate new positions * Collision detection (broad and narrow) * Collision resolution I'd suggest doing something similar here, detect your collisions then resolve them (take health or prevent) void Game::HandleCollision( const std::vector<En...
by reductor
January 10th, 2017, 5:39 am
Forum: Everything
Topic: Faster, Faster, Faster
Replies: 6
Views: 2268

Re: Faster, Faster, Faster

Is that a good idea When you have profiled, benchmarked and gotten every little bit out of your single threaded code and its performance still impacts your game then you can start thinking about threads. Generally you should avoid threads, they are easy to get wrong and easy to end up making things...
by reductor
December 18th, 2016, 11:55 am
Forum: Everything
Topic: Step 1 - The Beginning - By Hidden
Replies: 8
Views: 4524

Re: Step 1 - The Beginning - By Hidden

When people are done, feel free to send me the answer and can exchange sources to get the answer. (Before being updated, and after being updated)
by reductor
December 11th, 2016, 11:23 am
Forum: Everything
Topic: The friend keyword is kinda useless
Replies: 8
Views: 2900

Re: The friend keyword is kinda useless

I suppose nested classes would be a better way to describe them(and shorter too). To me, I still see that nested classes makes more sense semantically that they can access private members of classes that they are nested in compared to befriended classes. Nested classes is the official name, while t...
by reductor
December 11th, 2016, 5:29 am
Forum: Everything
Topic: The friend keyword is kinda useless
Replies: 8
Views: 2900

Re: The friend keyword is kinda useless

friend is useful, however the use-case you are describing above nested classes are better. Even with a friend class you should avoid accessing private data if there is an accessor for it (e.g. you should add one for surname, and remove the friend all together) Nested classes being implicit friends i...
by reductor
December 4th, 2016, 7:41 pm
Forum: Everything
Topic: Greetings from Germany!
Replies: 5
Views: 2067

Re: Greetings from Germany!

Welcome to the forums.
by reductor
December 2nd, 2016, 7:16 pm
Forum: Everything
Topic: Introduction of Myself
Replies: 12
Views: 4416

Re: Introduction of Myself

Welcome to the forums John.
by reductor
November 29th, 2016, 12:35 pm
Forum: Everything
Topic: Simple C++ Template utility library (Header only!)
Replies: 3
Views: 1749

Re: Simple C++ Template utility library (Header only!)

The API looks interesting. I'd suggest if you want to publish the library somewhere put it on github. Because I am on my mobile phone unable to look at the code and provide any input there (if you want feedback) You should avoid trying to create your own concurrency primitives as its easy to get wro...
by reductor
November 20th, 2016, 4:12 am
Forum: Everything
Topic: C++ Winsock Networking Tutorials [04-24-2017]
Replies: 105
Views: 49152

Re: C++ Winsock Networking Tutorials [11-16-2016]

To save explaining my vision of what is required to remove some of your threading issues, I have put the work required up on https://github.com/ReDucTor/network-tut-rework/commits/master This is still not completely thread safe as 'Connection' is still used over multiple threads. There is some room ...