TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Vulkan Memory Allocator

126 pointsby fctorialalmost 4 years ago

3 comments

flohofwoealmost 4 years ago
This is a fairly well known project which fixes one of Vulkan&#x27;s greatest shortcomings (some might say the lack of resource memory management is one of Vulkan&#x27;s greatest features though), but I wonder if there are alternatives which provide most of the critical features but with a much smaller footprint. VMA is around 20kloc, which is about the same as jemalloc (23kloc). A general purpose allocator like jemalloc is overkill for many situations, but there are much smaller (yet slower) alternatives like Emscripten&#x27;s emmalloc (which is just 1.4 kloc: <a href="https:&#x2F;&#x2F;github.com&#x2F;emscripten-core&#x2F;emscripten&#x2F;blob&#x2F;main&#x2F;system&#x2F;lib&#x2F;emmalloc.cpp" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;emscripten-core&#x2F;emscripten&#x2F;blob&#x2F;main&#x2F;syst...</a>).<p>Are there similar smaller alternatives for VMA?<p>As for the motivation: my 3D API wrapper around OpenGL, D3D11, Metal and WebGPU clocks in at 15kloc for <i>all</i> 3D backends, I&#x27;m hesitant to add a Vulkan backend exactly for problems like doing my own memory management for Vulkan resources. If I would integrate VMA, this would more than double the line count just for the memory management of a single 3D backend which simply doesn&#x27;t seem &quot;right&quot;. See: <a href="https:&#x2F;&#x2F;github.com&#x2F;floooh&#x2F;sokol&#x2F;blob&#x2F;master&#x2F;sokol_gfx.h" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;floooh&#x2F;sokol&#x2F;blob&#x2F;master&#x2F;sokol_gfx.h</a>
评论 #27904697 未加载
评论 #27904972 未加载
评论 #27904546 未加载
评论 #27908983 未加载
Ostrogodskyalmost 4 years ago
Somewhat related I hope. Does anyone know a resource guide to learn methodically about GPUs? Let me see if I can explain my frustrations:<p>1. The usual recommended books for beginners, although good miss what I need, yes I love building ray-tracers and rasterizers but I can finish the book and not have the slightest idea about how a GPU actually works<p>2. Books like H&amp;P although excellent, treat GPUs as an after-thought in 1 extra chapter, and even the content is like 5-10 years behind.<p>3. The GPU gems series are too advanced for me, I get lost pretty quickly and quit in frustration<p>4. Nvidia, AMD resources are 50% advertising, 50% hype and proprietary jargon.<p>I suppose what I want does not exist, I want a guide that starting from a somewhat basic level (let&#x27;s say assuming the reader took an undergraduate course in comp architecture) methodically explains how the GPU evolved into a complete separate type of computing architecture, how it works in the nitty gritty details, and how it is been used in different applications (graphics,ML,data processing, etc)
评论 #27907068 未加载
评论 #27907004 未加载
评论 #27908906 未加载
评论 #27907058 未加载
flqnalmost 4 years ago
Is this page completely broken for anyone else? After the fade-in animations, the whole page vanishes. Using Chrome, btw.
评论 #27904679 未加载
评论 #27904740 未加载
评论 #27905468 未加载
评论 #27904680 未加载
评论 #27904727 未加载