<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"><channel><title>ThreeGates</title><description>欢迎来到 ThreeGates！ThreeGates 是一个我用于分享游戏开发知识和游戏体验的平台，希望你能在这里发现有趣的东西……</description><link>https://www.threegates.net/</link><item><title>Linux内存管理（基础概念）</title><link>https://www.threegates.net/p/0a6e6f8be357/</link><guid isPermaLink="true">https://www.threegates.net/p/0a6e6f8be357/</guid><description>翻译自 Perfetto 官方文档。想看一下项目在真机上的表现，所以工作之余用了 Perfetto 来做性能测试，阅读文档时发现这一章节介绍了 Linux 内存管理的一些基础概念：页、VMA、文件后备页与匿名页，以及 RSS 和 PSS。</description><pubDate>Thu, 12 Oct 2023 07:16:14 GMT</pubDate></item><item><title>Godot引擎贡献最佳实践</title><link>https://www.threegates.net/p/13902132f155/</link><guid isPermaLink="true">https://www.threegates.net/p/13902132f155/</guid><description>翻译自 Godot 引擎贡献指南。许多代码贡献者非常的有创造力，他们享受设计抽象数据结构，搭建优秀的交互界面的过程，又或许他们只是单纯地热爱编程。代码贡献者们总是有一些很酷的想法，但这些想法或许能、或许不能解决真实的问题。</description><pubDate>Sat, 08 Jul 2023 09:15:26 GMT</pubDate></item><item><title>探究 .NET 源码系列：System.Text.StringBuilder</title><link>https://www.threegates.net/p/170a3913b9c4/</link><guid isPermaLink="true">https://www.threegates.net/p/170a3913b9c4/</guid><description>探究了 .net framework 4.8 下的 StringBuilder 及其常见操作实现。StringBuilder 对象代表一个可变字符串，有时我们需要对字符串进行移除，替换，插入字符等操作，但又不想每个操作都产生一个新的子串，在这样的情境下，StringBuilder 就特别有用。StringBuilder 中的完整字符串被表示为由块（Block）组成的链表，每个块都包含一个字符串块（Chunk）。实际上完整的字符串也可以仅用一个块来表示，这就是 StringBuilder 的主要设计思路。</description><pubDate>Mon, 31 Mar 2025 15:45:56 GMT</pubDate></item><item><title>Unity IL2CPP 编码限制</title><link>https://www.threegates.net/p/24d663e5b3a4/</link><guid isPermaLink="true">https://www.threegates.net/p/24d663e5b3a4/</guid><description>翻译整理自 Unity 官方文档 Scripting restrictions（2018.4 与 2022.3 版本），介绍了 IL2CPP 这类 AOT 平台上的编码限制：反射、System.Reflection.Emit、序列化、泛型类型与方法、从原生层调用托管方法，以及线程和异常过滤器等。</description><pubDate>Mon, 10 Jul 2023 15:20:30 GMT</pubDate></item><item><title>unity中的原生对象与托管对象</title><link>https://www.threegates.net/p/27ad02cebc90/</link><guid isPermaLink="true">https://www.threegates.net/p/27ad02cebc90/</guid><description>最初在工作中接触到引擎原生层相关的问题，是项目延时执行模块在 gameObject 销毁后访问时报错。这篇文章介绍了 Unity 中原生对象与托管对象的概念、UnityEngine.Object 对 == 运算符的重写，以及引擎如何管理这两类对象。</description><pubDate>Tue, 21 Dec 2021 03:31:37 GMT</pubDate></item><item><title>《The Way to Go》Chapter14 协程</title><link>https://www.threegates.net/p/4aa7a9cb350b/</link><guid isPermaLink="true">https://www.threegates.net/p/4aa7a9cb350b/</guid><description>Go 为构建并发程序的基本代码块是协程与通道，需要语言、编译器和 runtime 支持。Go 语言提供的垃圾回收器对并发编程至关重要（？）。原则：不要通过共享内存来通信，而通过通信来共享内存。</description><pubDate>Sun, 23 Oct 2022 14:48:59 GMT</pubDate></item><item><title>.NET source 系列：System.Collections.Generic.LinkedList</title><link>https://www.threegates.net/p/4c13c2dd8346/</link><guid isPermaLink="true">https://www.threegates.net/p/4c13c2dd8346/</guid><description>探究了 .net framework 4.8 下的 LinkedList 及其常见操作实现。LinkedList 的实现符合常见的链表数据结构设计，且 LinkedList 实现的是通用性更强的双向、环状列表，阅读源码的过程更像是指针操作的一次复习。LinkedList 提供了完备的节点插入，移除操作，但却都仅仅依赖为数不多的几个内部实现，很有启发性。</description><pubDate>Sat, 21 Dec 2024 05:08:17 GMT</pubDate></item><item><title>使用SSH进行远端仓库身份验证</title><link>https://www.threegates.net/p/6f279d447649/</link><guid isPermaLink="true">https://www.threegates.net/p/6f279d447649/</guid><description>使用 ssh key 进行连接 / 身份校验，需要先生成公私密钥，将公钥放到对应代码托管平台上，并在连接时使用相应的私钥。这里记录了 GitHub 目前推荐的签名算法与密钥对生成方式。</description><pubDate>Tue, 20 Dec 2022 12:15:56 GMT</pubDate></item><item><title>《CLR via C#》Chapter4 类型基础</title><link>https://www.threegates.net/p/77589f7bf80e/</link><guid isPermaLink="true">https://www.threegates.net/p/77589f7bf80e/</guid><description>《CLR via C#》第 4 章类型基础的阅读笔记，记录了 GetHashCode 与 Equals、new 操作符会做什么、类型转换，以及运行时类型对象、类型实例的创建与方法调用之间的相互关系。</description><pubDate>Wed, 25 Jan 2023 09:05:02 GMT</pubDate></item><item><title>Protocol Buffers 编码</title><link>https://www.threegates.net/p/783e3028351b/</link><guid isPermaLink="true">https://www.threegates.net/p/783e3028351b/</guid><description>本文翻译自 Protocol Buffers 官方文档，补充了部分前置知识与帮助理解的示例。从 Base64、Base128 与 ZigZag 编码讲起，介绍 protobuf 的序列化格式、支持的数据类型，以及可选与重复元素、字段顺序等编码细节。</description><pubDate>Wed, 06 Mar 2024 05:04:15 GMT</pubDate></item><item><title>如何在2DUI上生成3D模型的包围盒</title><link>https://www.threegates.net/p/8d386e7b10e2/</link><guid isPermaLink="true">https://www.threegates.net/p/8d386e7b10e2/</guid><description>在实际开发中遇到了这个问题，需要判断一个 3D 模型在专用相机下的显示范围，将其展示在 UI 上。这里记录一下通过 Renderer 的 bounds 计算屏幕坐标包围盒的实现步骤和代码。</description><pubDate>Tue, 22 Nov 2022 14:16:54 GMT</pubDate></item><item><title>games101-lecture14 笔记</title><link>https://www.threegates.net/p/9f45e6ee4d77/</link><guid isPermaLink="true">https://www.threegates.net/p/9f45e6ee4d77/</guid><description>GAMES101 第 14 课的笔记，内容包括光线追踪的加速结构：均匀网格、空间划分（KD-Tree）与物体划分（BVH）及两者的比较，以及辐射度量学（Radiometry）的基础概念。</description><pubDate>Sun, 17 Sep 2023 12:04:49 GMT</pubDate></item><item><title>通关后简单地评价一下P5R</title><link>https://www.threegates.net/p/a31f36d806f9/</link><guid isPermaLink="true">https://www.threegates.net/p/a31f36d806f9/</guid><description>从最早 17 年看狗头人玩女神异闻录 5，到 17 下半年自己攒钱买了显示器和缩水版的 ps4slim 在寝室里自己玩，再到 19 年皇家版游戏发售找代购入了收藏版，我终于在 22 年年初换了工作之后忙里偷闲地把它作为 psn 平台上的第一个白金游戏通关了。</description><pubDate>Mon, 31 Jan 2022 08:43:48 GMT</pubDate></item><item><title>关于配置代码生成器的构想</title><link>https://www.threegates.net/p/ab7a58fcc8d2/</link><guid isPermaLink="true">https://www.threegates.net/p/ab7a58fcc8d2/</guid><description>目前项目组的开发工作流中，读取表格配置需要重复较多机械性的工作：首先是字段的名称和类型规定上有一定的心智负担，在多种使用渠道（如 client，server）下可能要人为进行多次同步，其次是完成读表代码也比较模式化，理论上这些工作都可以由工具提供辅助并最终由工具生成代码。</description><pubDate>Sat, 11 Dec 2021 06:15:36 GMT</pubDate></item><item><title>.NET source 系列：System.Collections.Generic.Dictionary</title><link>https://www.threegates.net/p/b1b59cb05264/</link><guid isPermaLink="true">https://www.threegates.net/p/b1b59cb05264/</guid><description>探究了 .net framework 4.8 下的 dictionary 及其常见操作实现</description><pubDate>Sun, 20 Oct 2024 09:36:24 GMT</pubDate></item><item><title>《The Way to Go》Chapter16 常见陷阱与错误</title><link>https://www.threegates.net/p/c629bb3de01f/</link><guid isPermaLink="true">https://www.threegates.net/p/c629bb3de01f/</guid><description>《The Way to Go》第 16 章常见陷阱与错误的阅读笔记，整理了误用短声明导致变量覆盖、误用字符串、错误使用 defer、new() 与 make() 的区别，以及闭包与协程使用中容易踩的坑。</description><pubDate>Sun, 30 Oct 2022 10:30:30 GMT</pubDate></item><item><title>使用hexo快速进行博客搭建</title><link>https://www.threegates.net/p/c9e58284d744/</link><guid isPermaLink="true">https://www.threegates.net/p/c9e58284d744/</guid><description>之前用 wordpress 搭建的博客需要折腾的东西太多，编辑器支持也不太好，没有 Notion 里记笔记来的方便（该说写个笔记两头传本来就麻烦），所以这次用 hexo 来搭建看看。</description><pubDate>Sun, 05 Dec 2021 10:38:45 GMT</pubDate></item><item><title>计算机图形学中的四元数</title><link>https://www.threegates.net/p/d376051877fb/</link><guid isPermaLink="true">https://www.threegates.net/p/d376051877fb/</guid><description>参考 Krasjet 的《四元数与三维旋转》整理的阅读笔记。从复数相乘与 2D 旋转出发，推导三维空间中的旋转（Rodrigues 旋转公式），再到四元数的运算、四元数与 3D 旋转的关系及其矩阵形式，最后介绍了万向节死锁。</description><pubDate>Sat, 15 Jan 2022 10:21:14 GMT</pubDate></item><item><title>《The Way to Go》Chapter13 错误处理与测试</title><link>https://www.threegates.net/p/e22df32995f4/</link><guid isPermaLink="true">https://www.threegates.net/p/e22df32995f4/</guid><description>《The Way to Go》第 13 章错误处理与测试的阅读笔记。Go 通常在函数和方法中返回错误对象作为返回值，如果返回 nil 则没有错误发生；永远不要忽略错误，否则可能会导致程序崩溃！</description><pubDate>Sun, 23 Oct 2022 14:48:36 GMT</pubDate></item><item><title>.NET source 系列：System.Collections.Generic.List</title><link>https://www.threegates.net/p/e5c0cabb6711/</link><guid isPermaLink="true">https://www.threegates.net/p/e5c0cabb6711/</guid><description>探究了 .net framework 4.8 下的 List&lt;T&gt; 及其常见操作实现。List&lt;T&gt; 使用数组 T[] _items 实现，文章记录了构造函数、扩容策略、增删查改等主要行为的源码细节，以及在 Unity 中的情况。</description><pubDate>Sun, 25 Aug 2024 07:12:15 GMT</pubDate></item><item><title>向搜索引擎提交hexo站点sitemap</title><link>https://www.threegates.net/p/e620710b2f05/</link><guid isPermaLink="true">https://www.threegates.net/p/e620710b2f05/</guid><description>为自己的站点创建 sitemap，并通过搜索引擎提供的后台工具进行提交，可以增强个人网站的曝光率。这里简单记录一下 hexo 要如何生成 sitemap，并提交到各大搜索引擎上。</description><pubDate>Sun, 11 Dec 2022 09:58:00 GMT</pubDate></item><item><title>《The Way to Go》阅读笔记</title><link>https://www.threegates.net/p/e842888b11eb/</link><guid isPermaLink="true">https://www.threegates.net/p/e842888b11eb/</guid><description>《The Way to Go》阅读笔记。Go 结合了静态语言的安全性和高效性，以及动态语言的易开发性。注意，go 是静态语言（静态类型语言），是类型安全和内存安全的编程语言，通过 goroutine 来实现并发并行编程，通过 channel 来实现 goroutine 之间通信。</description><pubDate>Sun, 31 Jul 2022 14:24:57 GMT</pubDate></item><item><title>Go语言中Interface Nil检查的隐蔽陷阱</title><link>https://www.threegates.net/p/f877058db6e7/</link><guid isPermaLink="true">https://www.threegates.net/p/f877058db6e7/</guid><description>在 Go 语言开发过程中，开发者经常会遇到一个看似简单但实际很容易踩坑的问题：interface 变量的 nil 检查。这个问题的根源在于 Go 语言中 interface 的内部实现机制。在开发过程中，我们可能会遇到这样的情况：对一个 interface 变量进行 nil 检查通过了，但是在调用其方法时却发生了 nil pointer dereference panic。让我们看一个具体的例子...</description><pubDate>Wed, 06 Aug 2025 14:44:26 GMT</pubDate></item><item><title>TableCraft is finally here!</title><link>https://www.threegates.net/p/fc631eddaa53/</link><guid isPermaLink="true">https://www.threegates.net/p/fc631eddaa53/</guid><description>从 21 年起经过两年断断续续的开发，TableCraft 终于发布了 v1.0.0 版本，并开始提供给项目组同事使用了。这篇文章会介绍从最初立项到最终发布 TableCraft 的设计发生了怎样的变化，TableCraft 现阶段存在的一些问题，以及未来的发展目标。</description><pubDate>Sun, 21 May 2023 15:37:56 GMT</pubDate></item></channel></rss>