Search found 3802 matches

by albinopapa
September 16th, 2019, 5:30 pm
Forum: Everything
Topic: Got tired of naming things
Replies: 4
Views: 46

Re: Got tired of naming things

Then I wonder what are these "too many temporaries" that I keep hearing about when people say not to use operator overloads for SIMD operations, but yeah, that's kind of what I though inlining was suppose to do, copy/paste your inline function where the function is actually being called.
by albinopapa
September 14th, 2019, 10:28 pm
Forum: Everything
Topic: Got tired of naming things
Replies: 4
Views: 46

Re: Got tired of naming things

Yeah. I'm working on a few tasks right now. I'm kind of struggling with some choices though. My mind is all over the place, I could probably benefit from some medication lol. One of the things I like about C++ over other languages is operator and function overloading. I love being able to call a sin...
by albinopapa
September 14th, 2019, 2:02 am
Forum: Everything
Topic: Collision Functions
Replies: 6
Views: 117

Re: Collision Functions

by albinopapa
September 14th, 2019, 2:01 am
Forum: Everything
Topic: Sprite Drawing Tools
Replies: 11
Views: 149

Re: Sprite Drawing Tools

Don't know why I took your original comment as snobbish, sorry. Welcome.
by albinopapa
September 12th, 2019, 11:48 am
Forum: Everything
Topic: Got tired of naming things
Replies: 4
Views: 46

Got tired of naming things

template<typename T> auto __vectorcall operator<<( T left, int _count )noexcept { assert( _count >= 0 && "_count must be positive." ); if constexpr( traits::is_floating_point_v<T> ) { auto const false_mask = _mm_setzero_ps(); auto const true_mask = _mm_cmpeq_ps( _mm_setzero_ps(), _mm_setzero_ps() )...
by albinopapa
September 9th, 2019, 6:33 pm
Forum: Everything
Topic: Sprite Drawing Tools
Replies: 11
Views: 149

Re: Sprite Drawing Tools

Hope the explanation or reason for your previous usage was in error was helpful at least.
by albinopapa
September 9th, 2019, 6:31 pm
Forum: Everything
Topic: Collision Functions
Replies: 6
Views: 117

Re: Collision Functions

It's been kind of slow around here lately.
by albinopapa
September 6th, 2019, 7:26 am
Forum: Everything
Topic: Sprite Drawing Tools
Replies: 11
Views: 149

Re: Sprite Drawing Tools

You are reserving, but not resizing.
rects.reserve(NUMRECTS);
All this does is allocates space for NUMRECTS, but the size is still 0. You can use rects.resize(NUMRECTS)

Or, you can call .emplace_back() or .push_back() on all the new elements.
by albinopapa
September 5th, 2019, 7:07 pm
Forum: Everything
Topic: Learning and messing around
Replies: 17
Views: 1081

Re: Learning and messing around

good luck
by albinopapa
August 28th, 2019, 11:08 pm
Forum: Everything
Topic: Creating a Visual Studio Solution for a large c++ project
Replies: 1
Views: 64

Re: Creating a Visual Studio Solution for a large c++ project

Visual Studio does support cmake building of projects, but using CMake GUI is a lot easier. You have a source ( where the CMakeLists.txt is ) You have a destination ( where you want to "build" your project. There's a "Configure" button where you can choose your compiler and architecture. Once you cl...