Recent posts

[Unity] Burst

July 10 2022

๊ฐœ์š” LLVM์„ ์‚ฌ์šฉํ•˜์—ฌ IL์„ ๊ณ ๋„๋กœ ์ตœ์ ํ™”๋œ ๋„ค์ดํ‹ฐ๋ธŒ ์ฝ”๋“œ๋กœ ๋ณ€ํ™˜ํ•˜๋Š” ์ปดํŒŒ์ผ๋Ÿฌ

[C#] Garbage Collector

July 10 2022

GC ๊ธฐ๋ณธ์‚ฌํ•ญ CLR์—์„œ ์ž๋™ ๋ฉ”๋ชจ๋ฆฌ ๊ด€๋ฆฌ ์—ญํ• ์„ ํ•˜๊ธฐ ์œ„ํ•ด GC๋ฅผ ๋‘”๋‹ค ์‚ฌ์šฉ์ž๋Š” ๋ฉ”๋ชจ๋ฆฌ ํ•ด์ œ ๋“ฑ ๊ด€๋ฆฌ ์ž‘์—…์„ ์œ„ํ•œ ์ฝ”๋“œ๋ฅผ ์ž‘์„ฑํ•˜์ง€ ์•Š์•„๋„ ๋œ๋‹ค ๋ฉ”๋ชจ๋ฆฌ ๋ˆ„์ˆ˜ ๋ฐ ๋ฉ”๋ชจ๋ฆฌ ๋ฐ˜ํ™˜, ํ•ด์ œ๋œ ๋ฉ”๋ชจ๋ฆฌ์— ์ ‘๊ทผ ๋“ฑ ๋ฌธ์ œ๋ฅผ ํ•ด๊ฒฐ GC์— ์˜ํ•ด ํšจ์œจ์ ์œผ๋กœ ๋ฉ”๋ชจ๋ฆฌ๋ฅผ ํ• ๋‹น

[C#] Type

July 03 2022

Value Type ๊ฐ’์ด ๋ฐ”๋กœ ํ• ๋‹น๋˜๋Š” ํƒ€์ž… ์ง์ ‘ ๊ฐ’์„ ๊ฐ€์ง€๊ณ  ์žˆ๋‹ค int, float, char ๋“ฑ์ด ์ด์— ํ•ด๋‹นํ•œ๋‹ค System.ValueType์œผ๋กœ๋ถ€ํ„ฐ ์ƒ์†

[C#] Method์™€ Virtual Table

July 02 2022

Virtual Table์˜ ๊ตฌ์กฐ C#์—์„œ ๋ชจ๋“  ํด๋ž˜์Šค๋Š” System.Object ํด๋ž˜์Šค์—์„œ ์ƒ์†๋˜๋ฏ€๋กœ VTable์„ ๊ฐ–๋Š”๋‹ค ๊ธฐ๋ณธ์ ์œผ๋กœ ToString, Equals, GetHashCode, Finalize ๋ฉ”์„œ๋“œ๋ฅผ VTable์— ๊ฐ–๋Š”๋‹ค Baseํด๋ž˜์Šค๊ฐ€ ๊ฐ€์ƒ ๋ฉ”์„œ๋“œ๊ฐ€ ์—†๋‹ค๋ฉด ์ด์™ธ์˜ ๋ฉ”์„œ๋“œ๋“ค์€ VTable Slo...

[C#] Abstract Data Type

July 02 2022

์ถ”์ƒ์  ์ž๋ฃŒํ˜• ADT ์ž๋ฃŒ ์ž์ฒด์˜ ํ˜•ํƒœ์™€ ์—ฐ์‚ฐ์„ ์ˆ˜ํ•™์ ์œผ๋กœ๋งŒ ์ •์˜ํ•œ ๊ฒƒ

[Unity] SpriteRenderer vs. UI Image

June 22 2022

SpriteRenderer ์–ด๋–ค hierarchy์—๋„ ๋ฐฐ์น˜ํ•  ์ˆ˜ ์žˆ๋‹ค Transform์œผ๋กœ ์กฐ์ •ํ•œ๋‹ค transparent geometry queue๋ฅผ ํ†ตํ•ด์„œ render๋œ๋‹ค default material์„ ์‚ฌ์šฉํ•˜๋Š” ๊ฒฝ์šฐ ์ž๋™์œผ๋กœ ์ตœ์  ๋ฉ”์‰ฌ๋ฅผ ์ƒ์„ฑํ•œ๋‹ค draw call์„ ์ค„์ด๊ธฐ ์œ„ํ•ด sprite at...

[C#] Value Type์— ๋Œ€ํ•ด

June 22 2022

Value type์ด๋ฉด ๋ชจ๋‘ stack์— ์ €์žฅ๋œ๋‹ค? Value type์€ stack์— ์ €์žฅ๋  ์ˆ˜ ์žˆ๋‹ค ํ•ญ์ƒ stack์— ์ €์žฅ๋˜๋Š” ๊ฒƒ์€ ์•„๋‹ˆ๋‹ค ํ”„๋กœ๊ทธ๋ž˜๋จธ๋Š” ํŠน์ • ๊ฐ์ฒด์— ๋Œ€ํ•ด stack์— ์ €์žฅ๋˜๋Š”์ง€ heap์— ์ €์žฅ๋˜๋Š”์ง€๋ฅผ ์•Œ์•„์•ผํ•  ํ•„์š”๊ฐ€ ์žˆ์—ˆ๋‹ค ์‚ฌ์šฉ์ž์—๊ฒŒ ๋…ธ์ถœ๋˜์ง€ ์•Š์€ ์ƒํƒœ๋กœ ๋ฉ”๋ชจ๋ฆฌ๋ฅผ ๊ด€๋ฆฌํ•˜๋Š”...