<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Posts on 欢迎来到我的个人博客</title>
    <link>https://hugo-blog-1ij.pages.dev/post/</link>
    <description>Recent content from 欢迎来到我的个人博客</description>
    <generator>Hugo</generator>
    <language>zh-CN</language>
    
    <managingEditor>19398561589@163.com (胡宇琛)</managingEditor>
    <webMaster>19398561589@163.com (胡宇琛)</webMaster>
    
    <copyright>All articles on this blog are licensed under the BY-NC-SA license agreement unless otherwise stated. Please indicate the source when reprinting!</copyright>
    
    <lastBuildDate>Thu, 16 Apr 2026 00:00:00 +0000</lastBuildDate>
    
    
    <atom:link href="https://hugo-blog-1ij.pages.dev/post/index.xml" rel="self" type="application/rss&#43;xml" />
    

    
    

    <item>
      <title>摇摇晃晃的设计模式</title>
      <link>https://hugo-blog-1ij.pages.dev/post/design-pattern/</link>
      <pubDate>Thu, 16 Apr 2026 00:00:00 &#43;0000</pubDate>
      <author>19398561589@163.com (胡宇琛)</author>
      <guid>https://hugo-blog-1ij.pages.dev/post/design-pattern/</guid>
      <description>
        <![CDATA[<h1>摇摇晃晃的设计模式</h1><p>Author: 胡宇琛(19398561589@163.com)</p>
        
          <h1 id="摇摇晃晃的设计模式">
<a class="header-anchor" href="#%e6%91%87%e6%91%87%e6%99%83%e6%99%83%e7%9a%84%e8%ae%be%e8%ae%a1%e6%a8%a1%e5%bc%8f"></a>
摇摇晃晃的设计模式
</h1><h2 id="uml-基础">
<a class="header-anchor" href="#uml-%e5%9f%ba%e7%a1%80"></a>
UML 基础
</h2><p>UML 是统一建模语言，一种为面向对象系统的产品进行说明、可视化和编制文档的标准语言。</p>
<h3 id="事物">
<a class="header-anchor" href="#%e4%ba%8b%e7%89%a9"></a>
事物
</h3><p>事物是抽象化的最终结果，分为：</p>
        
        <hr><p>Published on 2026-04-16 at <a href='https://hugo-blog-1ij.pages.dev/'>欢迎来到我的个人博客</a>, last modified on 2026-04-16</p>]]>
      </description>
      
        <category>学习笔记</category>
      
    </item>
    
    

    <item>
      <title>懵逼的客户端开发(Gameplay)</title>
      <link>https://hugo-blog-1ij.pages.dev/post/%E6%87%B5%E9%80%BC%E7%9A%84%E5%AE%A2%E6%88%B7%E7%AB%AF%E5%BC%80%E5%8F%91gameplay/</link>
      <pubDate>Thu, 16 Apr 2026 00:00:00 &#43;0000</pubDate>
      <author>19398561589@163.com (胡宇琛)</author>
      <guid>https://hugo-blog-1ij.pages.dev/post/%E6%87%B5%E9%80%BC%E7%9A%84%E5%AE%A2%E6%88%B7%E7%AB%AF%E5%BC%80%E5%8F%91gameplay/</guid>
      <description>
        <![CDATA[<h1>懵逼的客户端开发(Gameplay)</h1><p>Author: 胡宇琛(19398561589@163.com)</p>
        
          <h1 id="懵逼的客户端开发gameplay">
<a class="header-anchor" href="#%e6%87%b5%e9%80%bc%e7%9a%84%e5%ae%a2%e6%88%b7%e7%ab%af%e5%bc%80%e5%8f%91gameplay"></a>
懵逼的客户端开发(Gameplay)
</h1><h2 id="ui-设计原则">
<a class="header-anchor" href="#ui-%e8%ae%be%e8%ae%a1%e5%8e%9f%e5%88%99"></a>
UI 设计原则
</h2><h3 id="1-最小惊讶原则">
<a class="header-anchor" href="#1-%e6%9c%80%e5%b0%8f%e6%83%8a%e8%ae%b6%e5%8e%9f%e5%88%99"></a>
1. 最小惊讶原则
</h3><p><strong>简洁性</strong>：尽管提供必要的信息很重要，但过度复杂的 UI 设计会分散玩家的注意力，甚至造成困扰。良好的 UI 设计应该力求简洁，避免不必要的修饰和元素。</p>
        
        <hr><p>Published on 2026-04-16 at <a href='https://hugo-blog-1ij.pages.dev/'>欢迎来到我的个人博客</a>, last modified on 2026-04-16</p>]]>
      </description>
      
        <category>学习笔记</category>
      
    </item>
    
    

    <item>
      <title>一言难尽的重构学习笔记</title>
      <link>https://hugo-blog-1ij.pages.dev/post/%E4%B8%80%E8%A8%80%E9%9A%BE%E5%B0%BD%E7%9A%84%E9%87%8D%E6%9E%84%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0/</link>
      <pubDate>Thu, 16 Apr 2026 00:00:00 &#43;0000</pubDate>
      <author>19398561589@163.com (胡宇琛)</author>
      <guid>https://hugo-blog-1ij.pages.dev/post/%E4%B8%80%E8%A8%80%E9%9A%BE%E5%B0%BD%E7%9A%84%E9%87%8D%E6%9E%84%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0/</guid>
      <description>
        <![CDATA[<h1>一言难尽的重构学习笔记</h1><p>Author: 胡宇琛(19398561589@163.com)</p>
        
          <h1 id="一言难尽的重构学习笔记">
<a class="header-anchor" href="#%e4%b8%80%e8%a8%80%e9%9a%be%e5%b0%bd%e7%9a%84%e9%87%8d%e6%9e%84%e5%ad%a6%e4%b9%a0%e7%ac%94%e8%ae%b0"></a>
一言难尽的重构学习笔记
</h1><h2 id="1-什么是重构">
<a class="header-anchor" href="#1-%e4%bb%80%e4%b9%88%e6%98%af%e9%87%8d%e6%9e%84"></a>
1. 什么是重构
</h2><p>具体来说就是在不改变代码功能行为的情况下，对其内部结构的一种调整。需要注意的是，重构不是代码优化：</p>
<ul>
<li><strong>重构</strong>：注重的是提高代码的可理解性与可扩展性，对性能的影响可好可坏</li>
<li><strong>性能优化</strong>：让程序运行的更快，但最终的代码可能更难理解和维护</li>
</ul>
<h2 id="2-为什么要重构">
<a class="header-anchor" href="#2-%e4%b8%ba%e4%bb%80%e4%b9%88%e8%a6%81%e9%87%8d%e6%9e%84"></a>
2. 为什么要重构
</h2><h3 id="改善程序的内部设计">
<a class="header-anchor" href="#%e6%94%b9%e5%96%84%e7%a8%8b%e5%ba%8f%e7%9a%84%e5%86%85%e9%83%a8%e8%ae%be%e8%ae%a1"></a>
改善程序的内部设计
</h3><p>如果没有重构，在软件不停的版本迭代中，代码的设计只会越来越腐败，导致软件开发寸步难行。人们只为了短期目的而修改代码时，往往没有完全理解整体的架构设计（在大项目中常有这种情况，比如在不同的地方，使用完全相同的语句做着同样的事情），代码就会失去自己的结构。代码结构的流失具有累积效应，越难看出代码所代表的设计意图，就越难保护其设计。</p>
        
        <hr><p>Published on 2026-04-16 at <a href='https://hugo-blog-1ij.pages.dev/'>欢迎来到我的个人博客</a>, last modified on 2026-04-16</p>]]>
      </description>
      
        <category>学习笔记</category>
      
    </item>
    
    

    <item>
      <title>三分钟热度的英语打卡</title>
      <link>https://hugo-blog-1ij.pages.dev/post/%E4%B8%89%E5%88%86%E9%92%9F%E7%83%AD%E5%BA%A6%E7%9A%84%E8%8B%B1%E8%AF%AD%E6%89%93%E5%8D%A1/</link>
      <pubDate>Thu, 09 Apr 2026 00:00:00 &#43;0000</pubDate>
      <author>19398561589@163.com (胡宇琛)</author>
      <guid>https://hugo-blog-1ij.pages.dev/post/%E4%B8%89%E5%88%86%E9%92%9F%E7%83%AD%E5%BA%A6%E7%9A%84%E8%8B%B1%E8%AF%AD%E6%89%93%E5%8D%A1/</guid>
      <description>
        <![CDATA[<h1>三分钟热度的英语打卡</h1><p>Author: 胡宇琛(19398561589@163.com)</p>
        
          <h1 id="三分钟热度的英语打卡">
<a class="header-anchor" href="#%e4%b8%89%e5%88%86%e9%92%9f%e7%83%ad%e5%ba%a6%e7%9a%84%e8%8b%b1%e8%af%ad%e6%89%93%e5%8d%a1"></a>
三分钟热度的英语打卡
</h1><blockquote>
<p>有三分钟热度就有三分钟收获。</p></blockquote>
<table>
  <thead>
      <tr>
          <th>日期</th>
          <th>单词数</th>
      </tr>
  </thead>
  <tbody>
      <tr>
          <td>2026-04-09</td>
          <td>50</td>
      </tr>
      <tr>
          <td>2026-04-10</td>
          <td>20</td>
      </tr>
      <tr>
          <td>2026-04-11</td>
          <td>20</td>
      </tr>
      <tr>
          <td>2026-04-12</td>
          <td>20</td>
      </tr>
      <tr>
          <td>2026-04-13</td>
          <td>30</td>
      </tr>
      <tr>
          <td>2026-04-14</td>
          <td>40</td>
      </tr>
      <tr>
          <td>2026-04-15</td>
          <td>30</td>
      </tr>
      <tr>
          <td>2026-04-16</td>
          <td>20</td>
      </tr>
  </tbody>
</table>
        
        <hr><p>Published on 2026-04-09 at <a href='https://hugo-blog-1ij.pages.dev/'>欢迎来到我的个人博客</a>, last modified on 2026-04-09</p>]]>
      </description>
      
        <category>英语打卡</category>
      
    </item>
    
    

    <item>
      <title>Unity Shader 入门精要学习笔记</title>
      <link>https://hugo-blog-1ij.pages.dev/post/unity-shader%E5%85%A5%E9%97%A8%E7%B2%BE%E8%A6%81%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0/</link>
      <pubDate>Mon, 06 Apr 2026 00:00:00 &#43;0000</pubDate>
      <author>19398561589@163.com (胡宇琛)</author>
      <guid>https://hugo-blog-1ij.pages.dev/post/unity-shader%E5%85%A5%E9%97%A8%E7%B2%BE%E8%A6%81%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0/</guid>
      <description>
        <![CDATA[<h1>Unity Shader 入门精要学习笔记</h1><p>Author: 胡宇琛(19398561589@163.com)</p>
        
          <h1 id="unity-shader-入门精要学习笔记">
<a class="header-anchor" href="#unity-shader-%e5%85%a5%e9%97%a8%e7%b2%be%e8%a6%81%e5%ad%a6%e4%b9%a0%e7%ac%94%e8%ae%b0"></a>
Unity Shader 入门精要学习笔记
</h1><h2 id="unity-shader-中-subshader-的工作机制和选择逻辑">
<a class="header-anchor" href="#unity-shader-%e4%b8%ad-subshader-%e7%9a%84%e5%b7%a5%e4%bd%9c%e6%9c%ba%e5%88%b6%e5%92%8c%e9%80%89%e6%8b%a9%e9%80%bb%e8%be%91"></a>
Unity Shader 中 SubShader 的工作机制和选择逻辑
</h2><ul>
<li>SubShader 的基本规则：一个 Shader 文件可以包含一个或多个 SubShader，但最少要有一个</li>
<li>SubShader 的基本规则：平台适配性（根据硬件内容）</li>
<li>Unity 是如何选择 SubShader 的：在加载 Shader 时会遍历所有 SubShader，然后选择第一个可以在目标平台运行的，如果都不支持的话，会使用 FallBack 指定的 Shader</li>
<li>为什么需要多个 SubShader？因为不同显卡的能力不同，高端 PC 支持复杂计算、多 Pass、高级特效，低端手机只可以跑基础版本</li>
<li>每个 Pass 等于一次完整的渲染流程（顶点处理 → 片元处理 → 输出），所以多 Pass 会影响帧率性能</li>
</ul>
<h3 id="第一层架构全景">
<a class="header-anchor" href="#%e7%ac%ac%e4%b8%80%e5%b1%82%e6%9e%b6%e6%9e%84%e5%85%a8%e6%99%af"></a>
第一层：架构全景
</h3><p><img src="/images/image-1.png" alt="第一层架构全景"></p>
        
        <hr><p>Published on 2026-04-06 at <a href='https://hugo-blog-1ij.pages.dev/'>欢迎来到我的个人博客</a>, last modified on 2026-04-06</p>]]>
      </description>
      
        <category>学习笔记</category>
      
    </item>
    
  </channel>
</rss>
