« first day (853 days earlier)      last day (4078 days later) » 

10:00 PM
so the index of the voxel is the sequence of idx values?
 
Who knows!
 
my mind is twisting
 
I have code that does that I think...
octree compiler
 
@doug65536 me wants my own
 
an octree is an octree, no matter what you store in it.
 
10:03 PM
I am just too stupid when it comes to algorithms
 
a little snippet that I think is what you're talking about
 
@BartekBanachewicz Nah- I have no idea what the fuck that thing is going on about either.
things in an octree don't have an index- it's not a random-access data structure
 
@DeadMG it is when not sparse. This one is sparse, though
 
you can use a bitmask to merge the 3 if's for XYZ into 3 bits
 
@BartekBanachewicz Implementation-only optimization.
 
10:04 PM
@doug65536 i am doing it
 
and a sparse one certainly isn't random-access.
an octree is a really simple concept, it's just a binary search in three dimensions, and is easily recursive.
 
I know
My tree is working ATM
I can add, query and remove elements
but raycasts.
 
hmm
presumably, you choose for each voxel, or the ray, to be a 3D volume?
 
@BartekBanachewicz ah, I see what you meant. a string of child indices would be a "path" to a node
 
cause the probability that you cast a ray that precisely hits a single voxel is rather low
 
10:06 PM
@R.MartinhoFernandes it just dawned on me you (effectively) told me to write one of these structs for each function that has code in the exception-case because finally doesn't scale...
 
@DeadMG i want to use it to optimize drawcalls. It should stop on first one hit
 
right
 
I understand the concept, but fail with the implementation atm.
 
but in order for a zero-size ray to hit a zero-size voxel, you are going to need impossibly precise rays.
you'd have to explicitly target a single voxel to hit anything.
 
@DeadMG oh, no no, it's minicraft, so the leaf size is 1x1 meter (unit)
 
10:07 PM
it's like, "Pick a random real number: what's the probability you hit any other random real number?" Pretty much zero.
@BartekBanachewicz Then fuck voxels, they are the wrong model.
you need to just deal in cubes.
 
Ell
I thought a voxel was a 3d pixel?
what it is represented by doesn't matter?
 
@Ell it can be.
 
@Ell A point has zero size.
a cube doesn't
 
@DeadMG don't you think octree of cubes isn't good approach?
 
a very important distinction
 
10:08 PM
@BartekBanachewicz bounding spheres checked against frustum planes will fly - particularly if you handle the case of a node fully being inside then trivially take all children
 
@BartekBanachewicz I think it's a perfectly fine approach.
 
Ell
Ahh well I didn't know what a voxel was then :L
 
I mean, for one, the things you're modelling are cubes.
 
user142019
Wait wtf.
 
Okay, let's boil it down to my XY problem maybe
 
user142019
10:09 PM
Since when can Windows read HFS+.
 
Xeo
Hmm... 50mins of interwebz left.
 
I want to draw shitload of cubes, so I want to process only visible ones.
 
right.
then you need an octree of cubes.
 
in this case, you even have a better than usual octree, since the bounding cube is exactly the same as the real cube.
 
10:10 PM
yes!
 
sbi
@MartinJames Actually I am not all that long.
 
hi @sbi.
 
but
 
sbi
@BartekBanachewicz Hi.
 
@DeadMG so the decision is good. that's great news
 
10:10 PM
you can't use an octree to do depth
if you want to process only visible ones, you will need another system to filter the "behind" cubes.
 
@DeadMG care to elaborate?
 
@BartekBanachewicz Even if you do frustum culling in 3D, you still need depth buffering on top.
 
@DeadMG sure you can, each node simply has 3 "children-directions" to check
 
frustum culling can eliminate everything that isn't in the camera's view volume, but it can't eliminate cubes which can't be seen because they're behind other cubes.
@doug65536 I considered that approach, but I'm not sure it can work if you have gaps.
 
@DeadMG but the calculation is simple! For every cube hit, I can extract the frustum it covers from view. Makes sense?
 
10:12 PM
why try to depth sort anymore anyway? PVS?
 
@BartekBanachewicz Uh, ... no, because then you'd eliminate all cubes which are partially in view.
you'd need a separate test to show that it's entirely within that frustum.
then you certainly could do that.
 
@Zoidberg interesting
 
@doug65536 Well, for one, the GPU can depth buffer pretty fucking efficiently.
 
user142019
@sehe maybe because Boot Camp?
 
10:14 PM
@DeadMG I thought about raycasting at the very edge of this frustum to check for anything that's partially visible. So, next cube at the edge will generate another frustum and so on.
 
@Zoidberg wut? you mean the move?
 
@BartekBanachewicz That would only hit partially-visible cubes in the corners.
 
user142019
@sehe I installed Boot Camp; maybe it has HFS+ drivers.
 
but
 
@DeadMG It doesn't matter if it gets hit in the corner, right? The ray will stop, and the cube will get processed, creating another frustum
 
user142019
10:15 PM
Windows 8 is fucking fast.
 
there are frustum-cube intersection tests that will tell you if a cube is entirely within a frustum.
 
do a "depth pass" with queries to detect entire chunks that are obscured? then you get to save shader work for partially obscured stuff too
 
sbi
I can't help but have to downvote this. Sorry, but it's silly. My question was What is that "feature" good for for, actually? Why would you want to throttle my output anyway? You have provided nothing to support its existence. But if it is a misfeature, and you can't explain its existence, why not simple eradicate it? — sbi 11 secs ago
 
@BartekBanachewicz Yeah, I meant, you will kill cubes which are not at the corners of the frustum. Because you only cast rays in the corners.
you will need two frustum-cube intersection tests- one for completely inside and one for partially inside.
 
@DeadMG i can cast a ray for every pixel surrounding the projection of that frustum on my screen. That will still be a lot lower than each-pixel-has-a-ray
 
10:16 PM
@BartekBanachewicz Now you're writing a raytracer?
 
it would be far more effective to simply customize your frustum-intersection test.
 
@DeadMG I think my CPU will be able to produce at least few dozen k of this rays per fram
 
@ScottW Error codes are only safe if they can be safely ignored. For any other case, you must resort to some other method which either the compiler or runtime will force you to not ignore.
 
if you're going to raytrace, you should probably do it on the GPU
 
user142019
10:17 PM
Dear Google Chrome I can read English thank you.
 
@BartekBanachewicz Seriously. Just customize your cube-frustum intersection test.
 
@DeadMG The point is, I don't have one.
So should my octree process frustum calls instead of rays?
 
yes.
frustum intersection has to be a special case.
 
okay, we're definitely making progress
 
you are micromanaging it too much I think. the whole idea of an octree or other visibility system is to discard/keep large chunks at a time
 
10:19 PM
the general algorithm is
 
@doug65536 I just want to process only cubes that are visible
 
@Zoidberg Is it? I'm having trouble installing it. Fucking MS decided you may not install it if your drive is connected via esata or USB3
 
i.e. on top
 
make a plane from each side of the frustum you have defined
then check which direction the cube is in from that plane.
 
@DeadMG stop.
 
10:19 PM
I have the code somewhere
 
@ScottW many people who can't write exception safe code think so. So they use languages that don't have exceptions, or disable the exceptions so they can continue writing unsafe code in peace.
 
user142019
@sehe boots in three seconds and everything is just fast.
 
user142019
Even with Visual Studio, iTunes and Chrome open it only uses 1 GB of RAM out of 4 GB.
 
@BartekBanachewicz then "queries" will do that, as well as doing a "depth pass".
 
"check which direction the cube is in from that plane."
 
10:20 PM
@ScottW Yes, they're a good thing
 
user142019
At least, on a Mac. ;p
 
@BartekBanachewicz Uh, I can't quite explain it.
I never paid attention to planes.
 
@doug65536 what is depth pass?
damn.
 
basically, each plane faces a direction.
 
10:21 PM
@ScottW though they're not perfect, they're the best error mechanism I've seen.
 
and if your cube is "behind" all six planes of the frustum
 
@BartekBanachewicz you pre-fill ONLY the depth buffer with a trivially simple shader. then when you do real fill, shader is only run once per pixel and all others are discarded
 
then it's contained entirely within the frustum.
 
Monadic computations are better :v
 
and if it's "behind" at least one, it's partially within the frustum.
 
10:21 PM
@doug65536 isn't it done automatically?
 
look at line 158
@BartekBanachewicz The GPU will depth buffer for you if you ask it to.
 
@BartekBanachewicz not necessarily. if you fill back to front it will overdraw
 
@doug65536 right.
 
it can't wait around to see if you're going to overwrite it right?
 
user142019
One thing I like too is that when I click on the Chrome icon, it's instantly opened.
 
10:23 PM
@ScottW I'd really like to be able to register functionoids to be executed when exceptions of a given type are thrown though, alongside some sort of abort/retry/fail mechanism. (Which C++ can do, but std::exceptions aren't designed to handle)
 
lol, so my world viewed from one side right now would be rendered a lot faster than the opposite
 
user142019
Before it always took seconds.
 
but if you pre-fill the depth buffer, it can O(1) test if this pixel will be visible and will only bother running shader if THIS pixel is the visible one
 
@doug65536 Uh, wrong.
I think.
 
@ScottW you can see why people hate them :P
@ScottW agreed
 
10:24 PM
hohoho, someone just told me that "encapsulation is wrong" and "OOP is totally wrong, never useful, broken and shit"
 
@Zoidberg that's really good, considering it's windows
 
@DeadMG I get the intersections, but I still don't get how the queries should be executed
@Griwes ?
 
<graphitemaster_> encapsulation IS wrong
 
@Griwes where?
 
<graphitemaster_> the only reason OO is of any popularity is because it was said and though to be easy to learn, and reuse, it was pointlessly hyped, and it created a new industry for idiots
 
10:25 PM
lol
 
#osdev @ Freenode
 
Xeo
@ScottW That only makes sense if you actually can handle the failure - more often than not, you can't, so I simply I ignore most exceptions on the current level and just let main handle that.
 
WTF are you doing there
 
@Griwes haha #osdev
 
That's our channel troll, but he got totally mad today :D
 
10:25 PM
Oh god
 
<graphitemaster_> someone needs to rid all these compsci students who are brainwashed ideas about OO
 
@Xeo no, you have to be aware of how exceptions impact your code even if they simply are passing through
 
@DeadMG GPU Gems chapter 30 : "Before a fragment reaches the fragment processor, the z-cull unit compares ..."
 
@Griwes Am I weird because I agree? :(
 
<graphitemaster_> data structures and functions should never be bound together
 
10:26 PM
I think I'm in the minority again
 
Possibly the only place worse than gamedev channels might just be osdev channel
 
@Rapptz Well, he has a point... a bit of it.
 
Xeo
@MooingDuck Talking about RAII? Well, sure, but since I like my stack, exceptions are generally of no interest to me.
 
But that doesn't make him right.
 
Xeo
@ScottW For some definition of "handling" - I usually just print it and exit.
 
10:26 PM
Encapsulation is not wrong
 
@CatPlusPlus Hey, we are killing trolls faster than gamedev communities.
 
Xeo
Since main usually can't do anything useful with an exception from somewhere.
 
Someone interested in OSdev should be aware of binary interface issues :cripes:
 
@CatPlusPlus As I said before, he's a troll.
 
user142019
 
user142019
10:27 PM
I'd say not bad.
 
It's a weak troll because it only makes him look like an idiot
 
Xeo
@Zoidberg Don't keel my interweeeebs D:
 
user142019
lol
 
@BartekBanachewicz How do you mean?
 
user142019
lol disk I/O 90%
 
10:28 PM
@CatPlusPlus Well, him being an idiot is also (at least partially) true.
 
room topic changed to Lounge<C++>: Cat goes full retard. Xeo goes offline. [c++] [c++11] [c++-faq] [no-helpdesk]
3
 
@Zoidberg not bad what?
 
Xeo
@CatPlusPlus laaaawl
 
@Xeo no, I mean class guarantees (I forget the actual word) A::operator=(const A& rhs) {delete data; data = new TYPE(rhs.data); return *this;} isn't exception safe. There's no handling, coder just didn't think of exceptions. RAII makes most but not all of these go away.
 
user142019
@Collin resource consumption.
 
Xeo
10:29 PM
@MooingDuck "invariants"?
 
@Xeo yeah, that
 
@DeadMG Again. We're sitting at some arbitrary point in space. We're looking at the octree of cubes. I don't want to process the invisible ones - the ones hidden by the front ones. My looking direction, position and FOV creates a frustum of view.
 
@BartekBanachewicz But also, check collision(const Frustum& f)
 
Rule of zero
 
Can I has optimize?
 
Xeo
10:29 PM
@ScottW Sure, if you can explicitly handle them and if it makes sense to do so, do it. Btw, I'm an advocate of error_code overloads for when you can handle stuff.
 
yes.
but
don't go overboard with CPU processing
 
@Xeo Don't click this one, then: eso.org/public/archives/images/large/eso1213a.jpg. Should I onebox it?
 
remember, the GPU is a shitton faster than the CPU
 
@DeadMG CUDA is an option too. Please, before we continue, take a look at this tml.tkk.fi/~samuli/publications/laine2010tr1_paper.pdf
 
@Xeo for instance, balancing after inserting elements in a binary tree must happen even if an exception is thrown. RAII doesn't really handle that case in a way I like.
 
10:30 PM
You should limit the scope of exceptions
 
nah, it's pointless when both OGL and D3D already contain primitives for the relevant opts.
 
Top-level handler should be absolute last resort
 
@MooingDuck I honestly don't get that.
 
Since most software will be interactive in one way or another
@ScottW There's always top-level handler
 
10:31 PM
What could throw an exception besides the creation of the element?
 
Xeo
@MooingDuck If an exception is thrown, what is there to rebalance?
 
That needs no rebalancing.
 
@R.MartinhoFernandes I very much dislike the idea of using destructors to execute functions that have nothing to do with cleaning resources.
 
user142019
@sehe dat hyperlink.
 
@Xeo if it inserted 3 out of 5, needs to rebalance
 
10:31 PM
Destructor is just scope exit operator
2
 
@doug65536 You mean the one where the latest version is nearly six years old?
 
@DeadMG that document shows how the raycasting can be used to render geometry pretty much identical to mine.
 
create_element();
attach_it(); // nothrow
rebalance(); // nothrow as well
 
I very much dislike... all of you!
 
user142019
@CatPlusPlus makes for a perfect 10 Guy meme.
 
10:32 PM
@BartekBanachewicz It won't load for me.
 
or you could balance after each and every insertion, but that seems absurd.
 
but you really don't need raycasting... at all.
 
@Zoidberg A wha- ok I don't want to know
 
Btw, chat renders horribly on Android
 
user142019
 
10:32 PM
@DeadMG en.wikipedia.org/wiki/Sparse_voxel_octree link 1 I can dropbox it if you can't reach that server
 
The input box is like most of the way to the top of the page
 
Ell
@LightnessRacesinOrbit not for me :3
 
Xeo
@MooingDuck Create all 5 nodes before inserting them by relinking?
 
You can insert to balanced tree without balancing it?
 
@Xeo doesn't work for removal
 
10:33 PM
hmm
 
Xeo
@MooingDuck Removal shouldn't throw.
 
maybe it's just very, very big?
I loaded a tiny bit of it.
 
@Xeo true
 
@MooingDuck If removal throws you're screwed anyway.
 
Xeo
@CatPlusPlus In the implementation, sure.
 
10:33 PM
@Xeo that's what I eventually changed my code to
 
@DeadMG 22.4 MB. It has images of renders
 
Xeo
@MooingDuck See? No problem. :3
 
anyway, there's absolutely no reason to go anywhere near raycasting or voxels for rendering- triangle primitives can handle this absolutely fine with far less complexity.
 
@R.MartinhoFernandes my tree-based-vector class handles throwing destructors fine, except in it's own destructor.
 
10:34 PM
@BartekBanachewicz is it something like "minecraft renderer written in native code by a dude at intel"?
 
I have to turn "mobile mode" on
 
@doug65536 s/intel/nvidia/, and it's pretty much it.
 
Destructors should never throw
It's almost never safe
 
Xeo
@MooingDuck You just kill yourself with that handling. Nobody should throw from their destructors, period.
 
std::terminate is a bug
 
10:34 PM
@MooingDuck Except it doesn't fix the resource that just broke.
 
Urff. It's something that happens only on twitter. Grrrr
 
@BartekBanachewicz cool
 
user142019
@sehe I don't go to such a crazy place of doom as space.
 
@R.MartinhoFernandes true. I should stop handling that situation then
 
@doug65536 did it load for you?
 
10:35 PM
@MooingDuck You cannot fix that. That's the point.
 
@DeadMG the point is raycasting against octree of cubes is pretty damn fast
 
@BartekBanachewicz I missed the link. was afk
 
@Zoidberg Oops fixing it again:
 
k, I surrender
 
I'm sending meteors to you because you're literally in My space.
 
1 message moved to bin
 
@BartekBanachewicz It's not going to be faster than a simple frustum cull.
 
Also if you don't like executing non-cleanup code in dtors you can always use execute-around :v
 
user142019
Is there xmonad for Windows. :v
 
@DeadMG will it prevent processing underground cubes?
 
10:37 PM
excel behaves oddly if you fill down something in a whole column
 
can do if you want to
 
@MooingDuck Stop abusing the poor thing
 
@DeadMG I am not getting the concept still :( sorry
 
but there are easier ways to eliminate underground cubes.
 
10:38 PM
also if I select columns, and tell it to sort, if the top row is blank, it sorts the data, with the first entry in the top row (blank row moved to bottom). If the top row is not blank, it sorts the data except that top row, with the first entry in the second row. WTF
 
@ScottW Well you can but it's usually permanent
 
@DeadMG such as? Underground and hidden by cubes in front, in general
 
@BartekBanachewicz It's trivially provable that a cube is not visible if it's got another cube on each of it's six faces.
 
Xeo
room topic changed to Lounge<C++>: Cat goes full retard. Xeo goes offline. Duck concurs.. [c++] [c++11] [c++-faq] [no-helpdesk]
 
@MooingDuck Because it treats the first row as a label
 
10:39 PM
this is going to be the vast majority of all invisible cubes
 
Xeo
Crap, can somebody remove that second dot?
 
@DeadMG of course. But it's O(N^3).
 
user142019
Windows runs best on a Mac.
 
@Xeo Why can't you?
 
@CatPlusPlus not when it's a blank row
 
10:39 PM
@BartekBanachewicz Only if you're dumb enough to recompute every frame.
 
room topic changed to Lounge<C++>: Cat goes full retard. Xeo goes offline. Duck concurs. [c++] [c++11] [c++-faq] [no-helpdesk]
 
but in reality, you only need to compute once, and then change it as cubes are added/removed.
 
@DeadMG damn right.
 
which is O(nothing).
 
Xeo
@R.MartinhoFernandes Dem slow interwebs.
 
10:39 PM
@MooingDuck And probably not when it's a number
 
damn fuck puppy you're right
 
yep
 
There's probably a setting for that or something
 
@CatPlusPlus I'm sorting six columns, but the column with the data being sorted is all numbers.
 
there are other means of eliminating other invisible cubes using frustum culls
 
Xeo
10:40 PM
@MooingDuck Win-Win.
 
@BartekBanachewicz Quite the surprise.
 
@DeadMG can you explain them a bit more to me? I am trying to read about it, but just not getting it
@DeadMG too bad it doesn't take caves into account
 
@BartekBanachewicz The other means can do that.
 
@MooingDuck Works for me vOv
 
user142019
VS starts in one second woop woop woop woop woop.
 
10:41 PM
> is it my internet or yours?
 
but also, remember that the GPU is specifically intended to deal with this kind of thing... unless you have some seriously complex shaders, your geometry is so fucking simple, that the realistic cost of having a few cubes extra is zero.
 
If you use the Sort dialog there's an option for labels
 
@CatPlusPlus I just clicked the UI button
 
@DeadMG believe it or not, but my PC clogged on 62500 of them
 
Which version do you have
 
10:42 PM
@MooingDuck Is it a Visual Basic UI?
 
In 2010 it's Data > Sort
 
@BartekBanachewicz You almost certainly epically failed by re-sending their positions every frame instead of lazy updating them.
 
Next to the basic AZ ZA buttons
 
@CatPlusPlus 2007, Sort&Filter->Smallest to Largest
 
10:43 PM
Then it should be somewhere around there
Just "sort" or something
 
@CatPlusPlus Sort&Filter->Custom has a button
 
anyways, the GPU has depth buffering which is used for exactly this purpose.
 
@DeadMG I ran Intel VTune Amplifier against it, gimme sec to fetch results
 
@CatPlusPlus ah, and after sorting with the button disabled, now no headers is teh default for the built-in sorts :/
 
10:46 PM
Yeah, wat? CShader?
Is there an MFCGL?
 
GetUniformLocation
 
Ugh those prefixes
I told you to not do that
You're not listening
 
I didn't have time to clean up yet!
I am listening
new code doesn't have them
 
Don't fetch uniform locations in every frame
 
You do seem to request a lot of uniform locations.
 
10:47 PM
They don't change between program links
 
it should be optimized
that's why wat
 
What should be optimised?
 
	auto Iter = m_UniformCache.find(name);
	if (Iter != m_UniformCache.end())
		return Iter->second;
	else
	{
		int Location = glGetUniformLocation(m_ProgramNum, name.c_str());
		m_UniformCache.insert(std::make_pair(name, Location));
		return Location;
	}
 
What's m_UniformCache
 
definitely an epic fail
put simply, your GPU should easily cover hundreds of thousands of cubes without an issue every frame.
 
10:48 PM
std::map<std::string, int> m_UniformCache;
unordered_map?
 
user142019
Just load them all at once once when you load the shader for the first time.
 
assuming that it's reasonably modern
 
@DeadMG it is
 
@BartekBanachewicz always unordered unless you need the ordered iterator invalidation behavior or sorting
 
Also do you even call it in that inner loop
 
Xeo
10:49 PM
Crap, I accidentally F5 on my PC. :(
2
 
user142019
lol
 
user142019
Okay.
 
@CatPlusPlus I set view matrix in shader
 
Xeo
Now chat won't load there anymore.
 
10:50 PM
Bravo
 
How the fuck do you "accidentally" F5?
 
Xeo
My internet's gone in 10mins anyways, if I don't renew.
 
@BartekBanachewicz Take the name outside of the loop vOv
I guess you might as well get rid of that map cache
 
Also, F5 is ... what exactly?
 
Refresh
 
10:51 PM
@R.MartinhoFernandes By trying not to hit it and failing.
 
He went offline
 
@CatPlusPlus ah, sorry. It's called before the loop
 
Xeo
Robot, G15 has these G keys to the left of the normal keyboard, and they alias F keys by default
 
> asynchronous: |āˈsiNGkrənəs| adjective 1 Computing & Telecommunications of or requiring a form of computer control timing protocol in which a specific operation begins upon receipt of an indication (signal) that the preceding operation has been completed.
^ Not sure about that.
 
10:52 PM
@BartekBanachewicz Then it's not a factor, ignore it
 
@BartekBanachewicz You can't spend so much time getting one shader parameter, even if you were at thousands of FPS.
 
Xeo
The G5 on is directly to the left of shift.
 
Alien keyboards.
 
@DeadMG then what the fuck
 
I don't know
 
10:52 PM
Look at times inside of it
 
@BartekBanachewicz you could std::move (in the insert) the name maybe. where is the name coming from
 
Xeo
It's sad, I can see the user list updating, but the actual chat won't load.
 
Come on, the problem is not the name.
 
Give it a year or so
46 secs ago, by Cat Plus Plus
Look at times inside of it
 
@Xeo What's sad is you reporting it.
 
10:53 PM
Instead of guessing wildly
 
Xeo
:(
 
@doug65536 i can't move it, it's a const&
 
Xeo
Amahgash it's back
 
The name is a little string it doesn't matter
 
Unless you named your parameter after the entirety of today's transcript, I doubt it makes a difference.
 
Xeo
10:55 PM
Anyways, since my internet will be gone any minute, and I want to get up early tomorrow, I'll hit the sack.
 
@BartekBanachewicz Moving one name isn't going to make that much difference.
 
@Xeo Have fun.
 
Profiler can profile at more granularity than just top-level functions useee it
 
@CatPlusPlus sec
 
Xeo
@BartekBanachewicz You're doing this on purpose, aren't you?
 
10:56 PM
See, there you go
 
@Xeo oh, damn, sorry
 
Xeo
:P
 
Check number of calls.
 
Is this release or debug standard library
Also how many names do you have in that
(Instead of this GetUniformLocation you could make a Uniform class that has operator= and caches the name inside)
 
@CatPlusPlus he's spending half a second comparing iterators, I think the problem is that the whole function is called too much
 
10:58 PM
@CatPlusPlus debug. On release there are unsolved problems still - glut is lagging my interface as fuck
 
@BartekBanachewicz does it repeatedly lookup the same name sometimes? you could "look aside" and see if the last lookup was for the same name as this time and bypass find
 
@CatPlusPlus the find is only 5x slower than the iterator comparison, that ain't bad.
 
...why are you profiling debug library
 
> The problem is not in saving a pair of parenthesis, but on providing something that is coherent with the rest of the language and allows to use concepts without any additional syntax just to conform with constexpr, just because we can not define template constexpr CONSTANTS.
 
i feel shitstorm incoming
 
10:58 PM
The incoherence is a fucking pair of parentheses.
TF is wrong with this people.
 
@CatPlusPlus i think it isn't that terrible
 
Xeo
@R.MartinhoFernandes From where is that?
 
OGL calls stay the same.
 
Profiling unoptimised code?
 
@Xeo std-proposals
 
10:59 PM
And wondering why it's not optimised?
 
@CatPlusPlus everything except my code and std is optimized
 
@BartekBanachewicz meaning, cache the last return value from find and before find, confirm last_iter->first != name
 
:lol:
 
@doug65536 maybe I could cache this caches too? -.^
 
@doug65536 This code is probably not the issue at all
 
10:59 PM
@R.MartinhoFernandes Where is this?
 

« first day (853 days earlier)      last day (4078 days later) »