|
1 | | -## Build variants |
| 1 | +## λΉλ λ³ν |
2 | 2 |
|
3 | | -When you bundle a game, you need to choose what type of engine you wish to use. You have three basic options: |
| 3 | +κ²μμ λ²λ€λ§ν λλ μ¬μ©ν μμ§ μ νμ μ νν΄μΌ ν©λλ€. κΈ°λ³Έ μ΅μ
μ μΈ κ°μ§μ
λλ€: |
4 | 4 |
|
5 | 5 | * Debug |
6 | 6 | * Release |
7 | 7 | * Headless |
8 | 8 |
|
9 | | -These different versions are also referred to as `Build variants` |
| 9 | +μ΄ μλ‘ λ€λ₯Έ λ²μ μ `Build variants`λΌκ³ λ λΆλ¦
λλ€. |
10 | 10 |
|
11 | 11 | <div class='sidenote' markdown='1'> |
12 | | -When you choose <kbd>Project βΈ Build</kbd> you'll always get the debug version. |
| 12 | +<kbd>Project βΈ Build</kbd>λ₯Ό μ ννλ©΄ νμ λλ²κ·Έ λ²μ μ΄ λ§λ€μ΄μ§λλ€. |
13 | 13 | </div> |
14 | 14 |
|
15 | 15 |
|
16 | 16 | ### Debug |
17 | 17 |
|
18 | | -This type of executable is typically used during development of a game as it has several useful debugging features included: |
| 18 | +μ΄ μ νμ μ€ν νμΌμ μ¬λ¬ μ μ©ν λλ²κΉ
κΈ°λ₯μ ν¬ν¨νκ³ μμΌλ―λ‘ μΌλ°μ μΌλ‘ κ²μ κ°λ° μ€μ μ¬μ©λ©λλ€: |
19 | 19 |
|
20 | | -* Profiler - Used for gathering performance and usage counters. Learn how to use the profiler in the [Profiling manual](/manuals/profiling/). |
21 | | -* Logging - The engine will log system information, warnings and errors when logging is enabled. The engine will also output logs from the Lua `print()` function and from native extensions logging using `dmLogInfo()`, `dmLogError()` and so on. Learn how to read these logs in the [Game and System Logs manual](https://defold.com/manuals/debugging-game-and-system-logs/). |
22 | | -* Hot reload - Hot-reload is a powerful feature which lets a developer reload resource while the game is running. Learn how to use this in the [Hot-Reload manual](https://defold.com/manuals/hot-reload/). |
23 | | -* Engine services - It is possible to connect to and interact with a debug version of a game through a number of different open TCP ports and services. The services include the hot-reload feature, remote log access and the profiler mentioned above, but also other services to remotely interact with the engine. Learn more about the engine services [in the developer documentation](https://github.com/defold/defold/blob/dev/engine/docs/DEBUG_PORTS_AND_SERVICES.md). |
| 20 | +* νλ‘νμΌλ¬ - μ±λ₯ λ° μ¬μ©λ μΉ΄μ΄ν°λ₯Ό μμ§νλ λ° μ¬μ©λ©λλ€. νλ‘νμΌλ¬ μ¬μ© λ°©λ²μ [νλ‘νμΌλ§ λ§€λ΄μΌ](/manuals/profiling/)μμ νμΈνμΈμ. |
| 21 | +* λ‘κΉ
- λ‘κΉ
μ΄ νμ±νλμ΄ μμΌλ©΄ μμ§μ΄ μμ€ν
μ 보, κ²½κ³ , μ€λ₯λ₯Ό λ‘κ·Έμ κΈ°λ‘ν©λλ€. μμ§μ Lua `print()` ν¨μμ λ‘κ·Έμ `dmLogInfo()`, `dmLogError()` λ±μ μ¬μ©νλ λ€μ΄ν°λΈ μ΅μ€ν
μ
μ λ‘κ·Έλ μΆλ ₯ν©λλ€. μ΄λ¬ν λ‘κ·Έλ₯Ό μ½λ λ°©λ²μ [κ²μ λ° μμ€ν
λ‘κ·Έ λ§€λ΄μΌ](https://defold.com/manuals/debugging-game-and-system-logs/)μμ νμΈνμΈμ. |
| 22 | +* ν« λ¦¬λ‘λ - ν« λ¦¬λ‘λλ κ²μμ΄ μ€ν μ€μΌ λ κ°λ°μκ° λ¦¬μμ€λ₯Ό λ€μ λ‘λν μ μκ² ν΄ μ£Όλ κ°λ ₯ν κΈ°λ₯μ
λλ€. μ¬μ© λ°©λ²μ [ν« λ¦¬λ‘λ λ§€λ΄μΌ](https://defold.com/manuals/hot-reload/)μμ νμΈνμΈμ. |
| 23 | +* μμ§ μλΉμ€ - μ¬λ¬ μ΄λ¦° TCP ν¬νΈμ μλΉμ€λ₯Ό ν΅ν΄ κ²μμ λλ²κ·Έ λ²μ μ μ°κ²°νκ³ μνΈμμ©ν μ μμ΅λλ€. μ΄ μλΉμ€μλ μμμ μΈκΈν ν« λ¦¬λ‘λ κΈ°λ₯, μ격 λ‘κ·Έ μ‘μΈμ€, νλ‘νμΌλ¬λΏ μλλΌ μμ§κ³Ό μ격μΌλ‘ μνΈμμ©νκΈ° μν λ€λ₯Έ μλΉμ€λ ν¬ν¨λ©λλ€. μμ§ μλΉμ€μ λν μμΈν λ΄μ©μ [κ°λ°μ λ¬Έμ](https://github.com/defold/defold/blob/dev/engine/docs/DEBUG_PORTS_AND_SERVICES.md)μμ νμΈνμΈμ. |
24 | 24 |
|
25 | 25 |
|
26 | 26 | ### Release |
27 | 27 |
|
28 | | -This variant has the debugging features disabled. This options should be chosen when the game is ready to be released to the app store or in other ways shared with players. It is not recommended to release a game with the debugging features enabled for a number of reasons: |
| 28 | +μ΄ λ³νμ λλ²κΉ
κΈ°λ₯μ΄ λΉνμ±νλμ΄ μμ΅λλ€. κ²μμ μ± μ€ν μ΄μ 릴리μ€νκ±°λ λ€λ₯Έ λ°©μμΌλ‘ νλ μ΄μ΄μκ² κ³΅μ ν μ€λΉκ° λμμ λ μ΄ μ΅μ
μ μ νν΄μΌ ν©λλ€. λ€μκ³Ό κ°μ μ¬λ¬ μ΄μ λ‘ λλ²κΉ
κΈ°λ₯μ΄ νμ±νλ κ²μμ 릴리μ€νλ κ²μ κΆμ₯λμ§ μμ΅λλ€: |
29 | 29 |
|
30 | | -* The debugging features take up a little bit of size in the binary, and [it is a best practice to try to keep the binary size of a released game as small as possible](https://defold.com/manuals/optimization/#optimize-application-size). |
31 | | -* The debugging features takes a little bit of CPU time as well. This can impact the performance of the game if a user has a low-end hardware. On mobile phones the increased CPU usage will also contribute to heating and battery drain. |
32 | | -* The debugging features may expose information about the game that is not intended for the eyes of the players, either from a security, cheating or fraud perspective. |
| 30 | +* λλ²κΉ
κΈ°λ₯μ λ°μ΄λ리μμ μ½κ°μ ν¬κΈ°λ₯Ό μ°¨μ§νλ©°, [릴리μ€λ κ²μμ λ°μ΄λ리 ν¬κΈ°λ₯Ό κ°λ₯ν ν μκ² μ μ§νλ κ²μ΄ λͺ¨λ² μ¬λ‘μ
λλ€](https://defold.com/manuals/optimization/#optimize-application-size). |
| 31 | +* λλ²κΉ
κΈ°λ₯μ CPU μκ°λ μ½κ° μ¬μ©ν©λλ€. μ¬μ©μκ° μ μ¬μ νλμ¨μ΄λ₯Ό μ¬μ©νλ κ²½μ° κ²μ μ±λ₯μ μν₯μ μ€ μ μμ΅λλ€. λͺ¨λ°μΌ ν°μμλ CPU μ¬μ©λ μ¦κ°κ° λ°μ΄κ³Ό λ°°ν°λ¦¬ μλͺ¨μλ μν₯μ μ€λλ€. |
| 32 | +* λλ²κΉ
κΈ°λ₯μ 보μ, μΉν
λλ λΆμ νμ κ΄μ μμ νλ μ΄μ΄μκ² κ³΅κ°λμ΄μλ μ λλ κ²μ μ 보λ₯Ό λ
ΈμΆν μ μμ΅λλ€. |
33 | 33 |
|
34 | 34 |
|
35 | 35 | ### Headless |
36 | 36 |
|
37 | | -This executable runs without any graphics and sound. It means that you can run the game unit/smoke tests on a CI server, or even have it as a game server in the cloud. |
| 37 | +μ΄ μ€ν νμΌμ κ·Έλν½κ³Ό μ¬μ΄λ μμ΄ μ€νλ©λλ€. μ¦ CI μλ²μμ κ²μ μ λ/μ€λͺ¨ν¬ ν
μ€νΈλ₯Ό μ€ννκ±°λ, ν΄λΌμ°λμμ κ²μ μλ²λ‘ μ¬μ©ν μλ μμ΅λλ€. |
0 commit comments