<!-- 
RSS generated by JIRA (9.12.2#9120002-sha1:301bf498dd45d800842af0b84230f1bb58606c13) at Sun Jan 12 12:30:19 UTC 2025

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>Mojang Studios Jira</title>
    <link>https://bugs.mojang.com</link>
    <description>This file is an XML representation of an issue</description>
    <language>en</language>    <build-info>
        <version>9.12.2</version>
        <build-number>9120002</build-number>
        <build-date>10-01-2024</build-date>
    </build-info>


<item>
            <title>[MC-12257] Texture changing/reloading causes client-side freezing for 7-15 seconds</title>
                <link>https://bugs.mojang.com/browse/MC-12257</link>
                <project id="10400" key="MC">Minecraft: Java Edition</project>
                    <description>&lt;p&gt;Changing or reloading Minecraft&apos;s texture pack, in any situation, causes an absurd delay where the client is entirely unresponsive. This applies to:&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;Changing texturepacks via the main menu, under Options&lt;/li&gt;
	&lt;li&gt;Changing texturepacks ingame via the menu&lt;/li&gt;
	&lt;li&gt;Server textures activating when you join a server&lt;/li&gt;
	&lt;li&gt;Server textures deactivating when you leave a server&lt;/li&gt;
	&lt;li&gt;Refreshing textures when pressing F3+T&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;The delay ranges anywhere between 7 and 15 seconds for me. The lower end of that range (viz. around 7 seconds) appears when activating a texturepack, even if it only modifies a single texture. The delay tends to be almost twice as long (viz. up to 15 seconds) when switching back to the default texture pack.&lt;/p&gt;

&lt;p&gt;This is disruptive, if not altogether deadly, when joining a server with custom textures: the client is unresponsive for at least 7 seconds, during which time any number of bad things can happen (especially if you logged off in the middle of danger).&lt;/p&gt;

&lt;p&gt;I should note that, in the past, texturepack changes have not caused client freezing in excess of 3 seconds for me (often as little as about 1.5 seconds), which is understandable.&lt;/p&gt;</description>
                <environment>Windows 7 64-bit Professional&lt;br/&gt;
4.00GB (3.75GB Usable) RAM&lt;br/&gt;
3.00 GHz AMD Athlon(tm) II X2 250 Processor&lt;br/&gt;
124GB Unused Hard Drive Space&lt;br/&gt;
64-bit Java 1.7.0_11</environment>
        <key id="27006">MC-12257</key>
            <summary>Texture changing/reloading causes client-side freezing for 7-15 seconds</summary>
                <type id="1" iconUrl="https://bugs.mojang.com/secure/viewavatar?size=xsmall&amp;avatarId=18903&amp;avatarType=issuetype">Bug</type>
                                    <status id="5" iconUrl="https://bugs.mojang.com/images/icons/statuses/resolved.png" description="A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.">Resolved</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="6">Works As Intended</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="wolfiemario">WolfieMario</reporter>
                        <labels>
                            <label>freeze</label>
                            <label>lag</label>
                            <label>menu</label>
                            <label>pack</label>
                            <label>resource-pack</label>
                            <label>server</label>
                            <label>texture</label>
                    </labels>
                <created>Sun, 17 Mar 2013 22:46:11 +0100</created>
                <updated>Mon, 7 Sep 2015 20:53:23 +0200</updated>
                            <resolved>Wed, 23 Oct 2013 12:32:43 +0200</resolved>
                                    <version>Minecraft 1.5</version>
                    <version>Minecraft 1.5.1</version>
                    <version>Minecraft 1.5.2</version>
                    <version>Snapshot 13w19a</version>
                    <version>Snapshot 13w21a</version>
                    <version>Snapshot 13w25a</version>
                    <version>Snapshot 13w25b</version>
                    <version>Snapshot 13w25c</version>
                    <version>Minecraft 1.6</version>
                    <version>Minecraft 1.6.1</version>
                    <version>Minecraft 1.6.2</version>
                    <version>Minecraft 13w37a</version>
                    <version>Minecraft 13w37b</version>
                    <version>Minecraft 1.7</version>
                                                                        <votes>2</votes>
                                    <watches>2</watches>
                                                                            <comments>
                            <comment id="75105" author="creeper_hostage" created="Tue, 18 Jun 2013 19:09:12 +0200"  >&lt;p&gt;I think this cannot be fixed as it takes time to change all the UI which you see on that screen, but it is better with new resource packs&lt;/p&gt;</comment>
                            <comment id="75103" author="wolfiemario" created="Tue, 18 Jun 2013 19:07:10 +0200"  >&lt;p&gt;I&apos;ve been getting better performance in the recent snapshots - it still takes 7+ seconds to load a resource pack for the first time, but subsequent changes now take more around 3 seconds.&lt;/p&gt;</comment>
                            <comment id="66252" author="wolfiemario" created="Sun, 12 May 2013 03:11:11 +0200"  >&lt;p&gt;With the new launcher, I was able to catch a glimpse of what exactly the game is doing during this burst of freezing.&lt;/p&gt;

&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;Client&amp;gt; 2013-05-11 21:04:34 [CLIENT] [INFO] Found animation info for: textures/blocks/lava_flow.txt
Client&amp;gt; 2013-05-11 21:04:34 [CLIENT] [INFO] Found animation info for: textures/blocks/water_flow.txt
Client&amp;gt; 2013-05-11 21:04:34 [CLIENT] [INFO] Found animation info for: textures/blocks/fire_0.txt
Client&amp;gt; 2013-05-11 21:04:34 [CLIENT] [INFO] Found animation info for: textures/blocks/fire_1.txt
Client&amp;gt; 2013-05-11 21:04:34 [CLIENT] [INFO] Found animation info for: textures/blocks/lava.txt
Client&amp;gt; 2013-05-11 21:04:34 [CLIENT] [INFO] Found animation info for: textures/blocks/portal.txt
Client&amp;gt; 2013-05-11 21:04:34 [CLIENT] [INFO] Found animation info for: textures/blocks/water.txt
Client&amp;gt; 2013-05-11 21:04:35 [CLIENT] [INFO] Found animation info for: textures/items/clock.txt
Client&amp;gt; 2013-05-11 21:04:35 [CLIENT] [INFO] Found animation info for: textures/items/compass.txt
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;That&apos;s the output when switching to Default. I should mention that it&apos;s possible time is being spent on other stuff too (I haven&apos;t got a profiler that I can use on Minecraft), but it would make sense that animation construction would be a bottleneck, particularly when considering the number of frames used by clocks and compasses.&lt;/p&gt;

&lt;p&gt;With the new texture loading system, thankfully, the freezing period appears to have been cut in half.&lt;/p&gt;

&lt;p&gt;I&apos;m not sure what, if anything, could be done to alleviate this issue, as logically all rendering must be put on a halt if textures are being changed. One possibility could be to take inspiration from the concept of double-buffering, and load the texture data in an alternate texture buffer and swap all textures when ready - so the rendering, and thus client interactivity, never has to skip a beat. However, if the bottleneck occurs in the texture swapping, this would be pointless.&lt;/p&gt;</comment>
                            <comment id="54808" author="ev149" created="Mon, 18 Mar 2013 01:15:05 +0100"  >&lt;p&gt;OS X 10.7.5 running 1.5, this happens to me as well.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10102">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="36599">MC-18282</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                        <customfield id="customfield_10500" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Confirmation Status</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10300"><![CDATA[Unconfirmed]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_11700" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_11600" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|i0hh8n:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                    </customfields>
    </item>
</channel>
</rss>