摘要:        
how to use gdb https://sourceware.org/gdb/documentation/ https://www-users.cse.umn.edu/~kauffman/tutorials/gdb 计算机系统的状态机模型 状态 内存和寄存器的数值 初始状态 CPU Reset    阅读全文
posted @ 2024-05-17 19:54
big_shark
阅读(9)
评论(0)
推荐(0)
        
            
        
        
摘要:        
tags: - batch - unity - optimization 1. 批处理 将多个 drawCall 操作合并为一个,减少cpu和gpu之间的通信 static batch 概念 static object : 非移动的对象 这些对象可以利用预计算信息减少资源的消耗 只有相同材质的的物体    阅读全文
posted @ 2024-05-17 19:54
big_shark
阅读(97)
评论(0)
推荐(0)
        
            
        
        
摘要:        
tags: - unity GetKey, GetKeyDown, GetKeyUp GetKey 按住 GetKeyDown 按下的第一帧为true ,按住后 为 false GetKeyUp 同理 new input system 为了适配更多输入设备并将逻辑和操作进行分离。 craete/in    阅读全文
posted @ 2024-05-17 19:54
big_shark
阅读(31)
评论(0)
推荐(0)
        
            
        
        
摘要:        
tags: - PIL - pytorch - opencv - image PIL 读取 image = Image.open({path}) 格式 h,w Tensor 读取 image = Image.open(image_name).convert('RGB') image = transf    阅读全文
posted @ 2024-05-17 19:54
big_shark
阅读(109)
评论(0)
推荐(0)
        
            
        
        
摘要:        
tags: - raytrace the basic #include <iostream> int main() { // Image int image_width = 256; int image_height = 256; // Render std::cout << "P3\n" << i    阅读全文
posted @ 2024-05-17 19:53
big_shark
阅读(22)
评论(0)
推荐(0)
        
            
        
        
摘要:        
tags: - raytrace add a sphere 球的公式 $$ x^2 + y ^2 + z^2 = r^2 $$ $(x,y,z)$ 在求的表面上 inside : $x^2 + y ^2 + z^2 < r^2$ outside : $x^2 + y ^2 + z^2 > r^2$     阅读全文
posted @ 2024-05-17 19:53
big_shark
阅读(30)
评论(0)
推荐(0)
        
            
        
        
摘要:        
tags: - raytrace 8 Antialiasing 如何 采样? 采样以像素为中心的正方形区域,该区域延伸到四个相邻像素中的每个像素的一半。 使用随机数 #include <cstdlib> inline double random_double() { // Returns a ran    阅读全文
posted @ 2024-05-17 19:53
big_shark
阅读(21)
评论(0)
推荐(0)
        
            
        
        
摘要:        
tags: - unity - DrawCall 什么是 Draw Call 简单来说就是 CPU 调用 图形化接口 如 glDrawElement 如何减少 Draw Call 方法1 : 使用Batch unity-batch 将很多小的 DrawCall 合并成一个大的DrawCall。 注意    阅读全文
posted @ 2024-05-17 19:52
big_shark
阅读(40)
评论(0)
推荐(0)
        
            
        
        
摘要:        
tags: - unity 是什么? 一堆我们定义的数据,方便我们之后进行初始化。 [CreateAssetMenu(fileName = "TestObject", menuName = "ScritableObjects/TestObject")] public class TestObject    阅读全文
posted @ 2024-05-17 19:51
big_shark
阅读(26)
评论(0)
推荐(0)
        
            
        
        
摘要:        
tags: - unity - settings 选择 编辑器 visual studio/vscode Edit/preferences/External Tools    阅读全文
posted @ 2024-05-17 19:51
big_shark
阅读(12)
评论(0)
推荐(0)
        

 
         浙公网安备 33010602011771号
浙公网安备 33010602011771号