| Age | Commit message (Collapse) | Author |
|
|
|
Mostly small changes, like capitalization and spelling
|
|
Also remove unused pow2/pow2f functions.
|
|
|
|
Also got rid of void argument specifiers. These are a carryover from C.
|
|
|
|
|
|
Yes, this matters.
We align our buffer all the the time which needs a division. u64 divisions are just so slow.
|
|
Only the caller know if alignment is needed at all, so it can be skipped now.
|
|
The size of the buffer is now power of 2, so we can use a shift instead of a division.
This was at about 2% of the global CPU usage.
|
|
|
|
Coherent mapping seems to be much slower on fermi gpus.
|
|
The header has no content, so it can can just be deleted.
|
|
|
|
Also moved && and || to ends of lines instead of start.
Fixed misc vertical alignments and some { needed newlining.
|
|
and s/\bNULL\b/nullptr/g for *.cpp/h/mm files not compiled on my machine
|
|
|
|
- remove unused variables
- reduce the scope where it makes sense
- correct limits (did you know that strcat()'s last parameter does not
include the \0 that is always added?)
- set some free()'d pointers to NULL
|
|
|
|
driver doesn't like it
OSX has their own driver, so performance issues aren't shared with the nvidia driver (unlike the closed source linux and windows nvidia driver). So now they'll also use the MapAndSync backend like all other osx drivers.
fixes issue 6596
I've also cleaned up the if/else block selecting the best backend a bit.
|
|
The old way was to use big switch/case statements based on a type of buffer.
The new one is to use inheritance.
This change prohibits us to change the buffer type while running, but I doubt we'll ever do so.
Performance should also be a bit better. Also a nice cleanup.
Added some comments about this different kind of buffers.
|
|
This is a bit slower on map_and_* because of flushing and _very_ much slower on buffer(sub)?data because of a new memcpy.
But this design allow us to decode directly into a gpu buffer, eg vertexloader will profit :)
|
|
NV has buffer_storage, AMD has pinned memory.
Both are better than that hack which shouldn't ever have been introduced in the first place.
|
|
We used this to disable pinned memory for index buffer, but as the detection
was reworked completely, it's just unused code.
|
|
|
|
|