﻿<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ja">
	<id>https://wiki.blender.jp/index.php?action=history&amp;feed=atom&amp;title=%E5%88%A9%E7%94%A8%E8%80%85%3ALordloki%2FPerformance_tricks</id>
	<title>利用者:Lordloki/Performance tricks - 版の履歴</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.blender.jp/index.php?action=history&amp;feed=atom&amp;title=%E5%88%A9%E7%94%A8%E8%80%85%3ALordloki%2FPerformance_tricks"/>
	<link rel="alternate" type="text/html" href="https://wiki.blender.jp/index.php?title=%E5%88%A9%E7%94%A8%E8%80%85:Lordloki/Performance_tricks&amp;action=history"/>
	<updated>2026-09-01T15:15:48Z</updated>
	<subtitle>このウィキのこのページに関する変更履歴</subtitle>
	<generator>MediaWiki 1.31.0</generator>
	<entry>
		<id>https://wiki.blender.jp/index.php?title=%E5%88%A9%E7%94%A8%E8%80%85:Lordloki/Performance_tricks&amp;diff=152613&amp;oldid=prev</id>
		<title>Yamyam: 1版 をインポートしました</title>
		<link rel="alternate" type="text/html" href="https://wiki.blender.jp/index.php?title=%E5%88%A9%E7%94%A8%E8%80%85:Lordloki/Performance_tricks&amp;diff=152613&amp;oldid=prev"/>
		<updated>2018-06-28T21:21:42Z</updated>

		<summary type="html">&lt;p&gt;1版 をインポートしました&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;ja&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← 古い版&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;2018年6月28日 (木) 21:21時点における版&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;ja&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(相違点なし)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Yamyam</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.blender.jp/index.php?title=%E5%88%A9%E7%94%A8%E8%80%85:Lordloki/Performance_tricks&amp;diff=152612&amp;oldid=prev</id>
		<title>2017年1月18日 (水) 06:59にwiki&gt;Lordlokiによる</title>
		<link rel="alternate" type="text/html" href="https://wiki.blender.jp/index.php?title=%E5%88%A9%E7%94%A8%E8%80%85:Lordloki/Performance_tricks&amp;diff=152612&amp;oldid=prev"/>
		<updated>2017-01-18T06:59:32Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新規ページ&lt;/b&gt;&lt;/p&gt;&lt;div&gt;From Sdfgeoff:&lt;br /&gt;
&lt;br /&gt;
Here's quite a useful component for UPBGE:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
import bge&lt;br /&gt;
import logging&lt;br /&gt;
from collections import OrderedDict&lt;br /&gt;
&lt;br /&gt;
LOCAL = True&lt;br /&gt;
&lt;br /&gt;
class DistFromObj(bge.types.KX_PythonComponent):&lt;br /&gt;
    args = OrderedDict([&lt;br /&gt;
        (&amp;quot;ObjName&amp;quot;, &amp;quot;Player&amp;quot;),&lt;br /&gt;
        (&amp;quot;Distance&amp;quot;, 5.0),&lt;br /&gt;
    ])&lt;br /&gt;
    def start(self, args):&lt;br /&gt;
        self.target = args['ObjName']&lt;br /&gt;
        self.distance = args['Distance']&lt;br /&gt;
        self.object.staticShadow = True&lt;br /&gt;
        &lt;br /&gt;
    def update(self):&lt;br /&gt;
        player_obj = self.object.scene.objects[self.target]&lt;br /&gt;
        dist = self.object.getDistanceTo(player_obj)&lt;br /&gt;
        self.object.staticShadow = dist &amp;gt; self.distance&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Apply it to a light, and it will make it so the shadow only updates when the specified object is within the specified distance. What this means is that you can have lots of shadow lights and not have as much of a performance hit (bear in mind you will still have the texture samples and VRAM use though)&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------------------------&lt;br /&gt;
From Sdfgeoff:&lt;br /&gt;
&lt;br /&gt;
Thing I learned a few days ago: Heightmaps are really really slow. They have 3 texture samples per pixel. Normal maps have only a single texture sample per pixel. One scene that had two heightmaps on objects taking up most of the screen ran at ~5fps on my laptop. I changed it to normal maps, and performance has increased to over 60 (for some reason I can't turn vsync off on my laptop, so I don't know what it's uncapped performance is).&lt;br /&gt;
&lt;br /&gt;
If you didn't already know, the thing that makes a material slow is pretty much always the same thing: the number of texture samples. A madern GPU can add numbers together at a blindingly fast rate but to access a texture, it has to access vram, which is quite a bit slower. I haven't done any profiling, but I expect that you could do 20 or so math operations in the time it takes to sample a pixel.&lt;br /&gt;
&lt;br /&gt;
Likewise, textures occupy vram. If the vram get's full, then the computer has to swap textures from system memory into GPU memory. This is extremely slow. So if you notice that adding a single texture takes your scene from 200fps down to 10fps, you've probably run out of VRAM and need to consider reducing the resolution of your textures.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Other tricks https://wiki.blender.org/index.php/User:Lordloki/other_tricks&lt;/div&gt;</summary>
		<author><name>wiki&gt;Lordloki</name></author>
		
	</entry>
</feed>