{"id":66831,"date":"2026-06-03T22:53:47","date_gmt":"2026-06-03T19:53:47","guid":{"rendered":"https:\/\/vpesports.com\/minecraft\/mods\/experimentalperformance\/"},"modified":"2026-06-03T22:53:47","modified_gmt":"2026-06-03T19:53:47","slug":"experimentalperformance","status":"publish","type":"mod","link":"https:\/\/vpesports.com\/minecraft\/mods\/experimentalperformance\/","title":{"rendered":"Experimental Performance"},"content":{"rendered":"<p>Memory Allocation<br \/>\nSome classes can be very memory dense, they have a big memory footprint.<br \/>\nThis is an issue because your computer can only fit 64 bytes into a processor&#8217;s cache line, so anything over 64 needs to be split into multiple lines. This can drastically slow down operations based on what is being called.<br \/>\nSo obviously the best solution is to make sure nothing is over 64 bytes, this is a lot easier said than done, since there&#8217;s multiple downsides to this, although they don&#8217;t matter in the circumstances that ive optimized.<\/p>\n<p>Chunk Memory Allocation<br \/>\nChunks are very memory dense and take up 80 bytes. Using some hacky fabric-ASM we are able to nuke variables from the Chunk class and redirect all the calls.<br \/>\nThis allows us to bring the chunk back down to 64, which on some computers can make most chunk operations 0.25x faster!<\/p>\n<p>Block Memory Allocation<br \/>\nBlocks are also very memory dense, taking up 72 bytes.<br \/>\nWe do the same thing as Chunks, we move stuff into a BlockInfo class and reduce the weight of the class.<br \/>\nThis not only makes it so most blocks can now be passed along faster, but also prevents some blocks from going over 128 bytes, which would need 3 cache lines.<\/p>\n<p>Entity Memory Allocation<br \/>\nUnlike Chunk &#038; Block, entity is its own nightmare. It takes up 272 bytes, which is 5 cache lines. No wonder entities are laggy xD<br \/>\nI&#8217;ve optimized it to 4 cache lines, although going any further will break more mod compatibility than I have the time to fix.<br \/>\nIf the mod grows big enough at some point, I may rewrite the entire entity class and just provide an API for the values you would want.<\/p>\n<p>Why is Mojang not doing this?<br \/>\nWell they kinda are?<br \/>\nWhen making my optimizations I noticed that mojang has actually made the same performance improvements that I&#8217;m doing. Such as LevelInfo, although that was years ago?<br \/>\nMojang does not seem to care about performance much these days, they make really weird performance changes but never seem to really care too much. Some classes have grown a lot in the last years, and they haven&#8217;t really noticed how dense they have become.<br \/>\nThat&#8217;s fine though, cause I&#8217;m here to help.<\/p>\n<p>The game of cat and mouse<br \/>\nPerformance is hard to get more of, it&#8217;s a very complex puzzle which requires you to understand every single part of it in a lot of detail.<br \/>\nPut simply, computers are not simple. They try really hard to make it easier for the programmer to not think about it, although programmers should be thinking about it at all times.<br \/>\nWhat am I talking about?<br \/>\nWell the performance I get with this mod comes at a cost, extra calls and memory allocation. I&#8217;m simply optimizing the structures within the game to work as smoothly and quickly with the computer, although that requires the computer to remember more things.<br \/>\nUnfortunately, you won&#8217;t notice that cost since in most of these situations the performance win greatly overcomes the loss.<\/p>\n<p>Experimental!!!<br \/>\nSeems I need to continue saying it. This mod is highly experimental and does some super sketch ASM magic to gain performance by simply moving classes around. Do not include this in modpacks, and do not make issues about compatibility. This mod was made as a proof of concept to see if we could further optimize minecraft by reducing the classes sizes in the cache lines. This mod showed a clear performance win, although its pretty untested and still needs LOTS of work. I don&#8217;t have time to continue working on this mod currently<\/p>\n","protected":false},"excerpt":{"rendered":"<p>improves Minecraft performance in several aspects<\/p>\n","protected":false},"featured_media":0,"template":"","meta":{"_minecraft_slug":"experimentalperformance","_minecraft_project_id":"pYFi4eeH","_minecraft_author":"PedrixzZ","_minecraft_license":"Apache-2.0","_minecraft_downloads":25843,"_minecraft_follows":63,"_minecraft_client_side":"optional","_minecraft_server_side":"optional","_minecraft_storage_type":"zip","_minecraft_archive_name":"experimentalperformance.zip","_minecraft_size_bytes":676723,"_minecraft_version_count":1,"_minecraft_updated_at":"2026-05-16T20:12:01.952644Z","_minecraft_date_created":"2024-01-06T20:19:44.886255Z","_minecraft_date_modified":"2024-06-22T15:42:28.526824Z","_minecraft_project_url":"https:\/\/modrinth.com\/mod\/experimentalperformance","_minecraft_icon_attachment_id":0,"_minecraft_imported_at":"2026-06-03T19:53:48+00:00","_minecraft_import_hash":"d9b0707afb6270b06f7823b11d9721d3","_minecraft_versions":"","_minecraft_links":"","_minecraft_gallery":"","_minecraft_api_metadata":""},"mod_category":[97,90],"mod_loader":[99],"minecraft_version":[94],"class_list":["post-66831","mod","type-mod","status-publish","hentry","mod_category-fabric","mod_category-optimization","mod_loader-fabric","minecraft_version-1-20-4"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Experimental Performance - Minecraft<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/vpesports.com\/minecraft\/mods\/experimentalperformance\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Experimental Performance - Minecraft\" \/>\n<meta property=\"og:description\" content=\"improves Minecraft performance in several aspects\" \/>\n<meta property=\"og:url\" content=\"https:\/\/vpesports.com\/minecraft\/mods\/experimentalperformance\/\" \/>\n<meta property=\"og:site_name\" content=\"Minecraft\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/experimentalperformance\\\/\",\"url\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/experimentalperformance\\\/\",\"name\":\"Experimental Performance - Minecraft\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/#website\"},\"datePublished\":\"2026-06-03T19:53:47+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/experimentalperformance\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/experimentalperformance\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/experimentalperformance\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Mods\",\"item\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Experimental Performance\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/#website\",\"url\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/\",\"name\":\"Minecraft\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Experimental Performance - Minecraft","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/vpesports.com\/minecraft\/mods\/experimentalperformance\/","og_locale":"en_US","og_type":"article","og_title":"Experimental Performance - Minecraft","og_description":"improves Minecraft performance in several aspects","og_url":"https:\/\/vpesports.com\/minecraft\/mods\/experimentalperformance\/","og_site_name":"Minecraft","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/vpesports.com\/minecraft\/mods\/experimentalperformance\/","url":"https:\/\/vpesports.com\/minecraft\/mods\/experimentalperformance\/","name":"Experimental Performance - Minecraft","isPartOf":{"@id":"https:\/\/vpesports.com\/minecraft\/#website"},"datePublished":"2026-06-03T19:53:47+00:00","breadcrumb":{"@id":"https:\/\/vpesports.com\/minecraft\/mods\/experimentalperformance\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/vpesports.com\/minecraft\/mods\/experimentalperformance\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/vpesports.com\/minecraft\/mods\/experimentalperformance\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/vpesports.com\/minecraft\/"},{"@type":"ListItem","position":2,"name":"Mods","item":"https:\/\/vpesports.com\/minecraft\/mods\/"},{"@type":"ListItem","position":3,"name":"Experimental Performance"}]},{"@type":"WebSite","@id":"https:\/\/vpesports.com\/minecraft\/#website","url":"https:\/\/vpesports.com\/minecraft\/","name":"Minecraft","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/vpesports.com\/minecraft\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/mod\/66831","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/mod"}],"about":[{"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/types\/mod"}],"wp:attachment":[{"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/media?parent=66831"}],"wp:term":[{"taxonomy":"mod_category","embeddable":true,"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/mod_category?post=66831"},{"taxonomy":"mod_loader","embeddable":true,"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/mod_loader?post=66831"},{"taxonomy":"minecraft_version","embeddable":true,"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/minecraft_version?post=66831"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}