You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Tree:
ca1cb6bef4
00336
02751
Kernel
Update-some-barriers-test
astc_optimization1
astc_optimizations
atomicops-mxwell
bcn-ternary-soft
camillelavey-patch-1
chore/chore
civa
cyber/async-gpu-android
descriptor
descriptor_pool_opt
descriptor_set
discfix
dmnt2
dravee/qt-fix
dravee/remove-async
dynarmic-ppc64
eden-orbis-ps4
eds-true-adreno-fixes
eds-true-adreno-fixes-pre-0.1.0
feat/android_kotlin_compose
feat/game_override
ffmpeg-cross-compile
fix/discord-rpc
fix/socket
flatopsfixes23485
frame_pacing
fs-try
gentoo-gdb
gpuopts
interval-zero
lanobu
liz-crash-dumps-solaris
liz-dynarmic-macos-fbsd-port
liz-get-rid-of-mcl-intrusive-list
liz-heaptrack-fix
liz-no-rtti-allowance
lizzie/adreno5-mali-driver-fix
lizzie/astc-mp4-improv
lizzie/audio-remove-recursive-lock
lizzie/correcter-convert-abgr8-srgb-d24s8
lizzie/dynarmic-isb
lizzie/dynarmic-remove-interpreter
lizzie/dynarmic-sse3-impls
lizzie/dynarmic-xbyak-use-ankerl
lizzie/dynrregabiset
lizzie/evil-f32-u32-format-fix
lizzie/fix-dragonslayer-armnce
lizzie/fix-idiv-crash
lizzie/fix-my-fuckup-with-vic
lizzie/fix-rw-garten
lizzie/fix-vic-msvc-attempt-2
lizzie/gmake-fix
lizzie/gutter-sw-blitter
lizzie/inline-dynarmic-spooky
lizzie/ltofix123
lizzie/macos-fix
lizzie/macos-vk-metal-fix-stype
lizzie/maxwell-dumb-tools
lizzie/nce-port1123
lizzie/qt-fix-user-dialogue
lizzie/rasterizer-recursive-mutex-not
lizzie/remove-disassembler-dynarmic
lizzie/revert-evil-mali
lizzie/rework-block-list
lizzie/sgsr
lizzie/stupid-socket-bullshit
lizzie/texture-pass-revert-1
lizzie/try-fix-win11-crash-fuck
lizzie/vids-ratatata
lock-term-1
macroify-surface-stuffs
master
memsetopsyscallavoid
mmap-fixews
msvc
mutliplayer-filter-better1
n64
nce_cpp
pipelinederivative
qcomopts2
qt-6.9
querybugfix
refactoreds2
release-early-fences
release/0.0.3
release/0.0.4
release/0.1.0
renderer_vulkan
revert-2695
revert-noinline
revertrevert
sgsrtry
showcase
showcase2
sjkdbsdfjkbsdf-2834
spvopts
sured-revert
techno48473719
test-revert-gpu-optim
test2
true-eds
true-eds-graphics
true-eds-pre-0.0.1
uma
vk-fix-oom-force-maller-buffers
vk-surface-andpc
vk-symph
vkexperiments1
vulkan-thingy
vulkanasync
woa-turnip-expr
workgroup
xbzk-saf-recursive-write-with-permission-request
xbzk/bindless-textures-support
xbzk/debug-knobs-pergame-fix
xbzk/dma-step-ondemand-flush
xbzk/flicker-fix
xbzk/msvc-ninja-annoying-if-constexpr-warning-fix
0.0.0
0.0.1-pre-alpha
0.0.2-pre-alpha
test-tag1
test-tag2
v0.0.3
v0.0.3-rc1
v0.0.3-rc2
v0.0.3-rc3
v0.0.3.git
v0.0.4
v0.0.4-rc1
v0.0.4-rc2
v0.0.4-rc2.test
v0.0.4-rc2.test2
v0.0.4-rc3
v0.0.4-rc3.test1
v0.0.4-rc3.test2
v0.0.4.test
v0.1.0
v0.1.0-rc1
v0.1.1
v0.2.0-rc1
${ noResults }
eden/.github
The previous code had some minor issues with it, really not a big deal, but amending it is basically 'free', so I figured, "why not?". With the standard container maps, when: map[key] = thing; is done, this can cause potentially undesirable behavior in certain scenarios. In particular, if there's no value associated with the key, then the map constructs a default initialized instance of the value type. In this case, since it's a std::shared_ptr (as a type alias) that is the value type, this will construct a std::shared_pointer, and then assign over it (with objects that are quite large, or actively heap allocate this can be extremely undesirable). We also make the function take the region by value, as we can avoid a copy (and by extension with std::shared_ptr, a copy causes an atomic reference count increment), in certain scenarios when ownership isn't a concern (i.e. when ReserveGlobalRegion is called with an rvalue reference, then no copy at all occurs). So, it's more-or-less a "free" gain without many downsides. |
7 years ago | |
|---|---|---|
| .. | ||
| ISSUE_TEMPLATE.md | ISSUE_TEMPLATE: changes to make it more expressive and prevent low-quality issues | 7 years ago |