<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Windows Sandbox 彙整 - 泰克哪裡去</title>
	<atom:link href="https://tech.uccu.website/tag/windows-sandbox/feed" rel="self" type="application/rss+xml" />
	<link>https://tech.uccu.website/tag/windows-sandbox</link>
	<description>一個科技相關的隨手記錄網站</description>
	<lastBuildDate>Sat, 19 Feb 2022 07:35:13 +0000</lastBuildDate>
	<language>zh-TW</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.1</generator>
<site xmlns="com-wordpress:feed-additions:1">119574712</site>	<item>
		<title>Windows Sandbox沙箱環境啟用GPU功能</title>
		<link>https://tech.uccu.website/windows-sandbox-enable-gpu.html?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=windows-sandbox-enable-gpu</link>
					<comments>https://tech.uccu.website/windows-sandbox-enable-gpu.html#comments</comments>
		
		<dc:creator><![CDATA[鳴人]]></dc:creator>
		<pubDate>Sat, 19 Feb 2022 07:35:08 +0000</pubDate>
				<category><![CDATA[Windows]]></category>
		<category><![CDATA[Windows Sandbox]]></category>
		<guid isPermaLink="false">https://tech.uccu.website/?p=1700</guid>

					<description><![CDATA[<p>Windows Sandbox沙箱是一個不錯的功能，除了可以在裡面進行一些測試或是不想留在Host的一些記錄之外，有時候更是拿來當作簡易陽春型的VM虛擬機器來使用。如果在裡面執行一些需要較多顯示運算能力的軟體時，記得啟用GPU的功能轉譯，才不會耗用太多的CPU運算資源。</p>
<p>這篇文章 <a href="https://tech.uccu.website/windows-sandbox-enable-gpu.html">Windows Sandbox沙箱環境啟用GPU功能</a> 最早出現於 <a href="https://tech.uccu.website">泰克哪裡去</a>。</p>
]]></description>
										<content:encoded><![CDATA[
<p>Windows Sandbox沙箱是一個不錯的功能，除了可以在裡面進行一些測試或是不想留在Host的一些記錄之外，有時候更是拿來當作簡易陽春型的VM虛擬機器來使用。(可以參考之前的<a href="https://tech.uccu.website/windows-10-home-install-sandbox-feature.html" target="_blank" rel="noreferrer noopener">這篇文章</a>，裡面有簡單的介紹並說明如何在Windows 10 家用Home版安裝Sandbox功能)</p>



<span id="more-1700"></span>



<p>這兩天試玩了某個Web的網頁遊戲，它有循環同一個關卡戰鬥的功能(為了獲得經驗/道具)，但是如果有程式蓋過它的全部畫面，它就會暫停執行。或是為了減少螢幕的耗電與延長使用壽命，所以人不在電腦前面的時候都會將系統內關閉螢幕顯示的間隔時間調低(直接按下關閉螢幕實體電源會讓解析度被調整)，這樣也會讓它暫停動作。</p>



<p>因為上面的這些因素，我希望它能夠在「掛機」的狀態繼續運作，所以就試著在Windows Sandbox沙箱環境執行，結果能夠避免上面這些因素造成的暫停執行，用Windows Sandbox沙箱環境執行了幾天之後，一直覺得這幾天的CPU使用率都在80%以上，雖然不以為然(主要是平常還開了三個BlueStacks的模擬器在掛天堂M)，但是還是心想這個網頁遊戲在沙箱功能裡有這麼吃資源嗎？</p>



<p>留意了一下沒有在Sandbox環境執行的時候CPU的使用率似乎沒有那麼高，代表其實資源並沒有吃那麼多，所以肯定是Sandbox環境額外增加了CPU的負擔…</p>



<p>？！</p>



<p>突然好像知道了些什麼！</p>



<p>應該是Sandbox環境沒有使用到GPU的運算功能，所有畫面運算的負擔都叫CPU去執行，所以造成了CPU較多的負擔。這樣的推測是很合理的，因此查了一下<a href="https://docs.microsoft.com/en-us/windows/security/threat-protection/windows-sandbox/windows-sandbox-configure-using-wsb-file#vgpu" target="_blank" rel="noreferrer noopener">Windows Sandbox沙箱環境設定GPU的文件</a>，果然預設值是沒有啟用GPU的功能，難怪…(一直以為預設是有使用GPU的…)，設定啟用GPU功能的方式非常簡單，把下面的內容複製貼到記事本，然後存成副檔名為wsb的文件(ex: SandboxEnableGPU.wsb)再點擊執行就可以開啟有啟用GPU功能的Sandbox沙箱環境了。</p>



<pre class="wp-block-prismatic-blocks"><code class="language-">&lt;Configuration&gt;
    &lt;vGPU&gt;enable&lt;/vGPU&gt;
&lt;/Configuration&gt;</code></pre>
<p>這篇文章 <a href="https://tech.uccu.website/windows-sandbox-enable-gpu.html">Windows Sandbox沙箱環境啟用GPU功能</a> 最早出現於 <a href="https://tech.uccu.website">泰克哪裡去</a>。</p>
]]></content:encoded>
					
					<wfw:commentRss>https://tech.uccu.website/windows-sandbox-enable-gpu.html/feed</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1700</post-id>	</item>
	</channel>
</rss>
