심스틸러

고정 헤더 영역

글 제목

메뉴 레이어

심스틸러

메뉴 리스트

  • 홈
  • 태그
  • 방명록
  • 분류 전체보기 (221)
    • 모의 해킹 (3)
    • 리눅스 (3)
    • 보안 (2)
    • 파이썬 (40)
    • 쉘 스크립트 (0)
    • C++ 문법 (43)
    • GitHub (6)
    • 자료구조 (1)
    • 유니티 (77)
    • 프로그래밍 에러 (1)
    • Node.json (26)
    • Photon (0)
    • 언리얼엔진 (10)
    • Project 다이어리 (7)

검색 레이어

심스틸러

검색 영역

컨텐츠 검색

전체 글

  • [Unity] Reflection 기반 모델 생성/세팅 비용 비교

    2026.01.20 by simstealer

  • [Unity] JSON 로딩 GC Alloc 스파이크 재현 및 개선 방향 검증

    2026.01.20 by simstealer

  • [스크립트] 포트폴리오 스크립트

    2025.11.21 by simstealer

  • [Node.js] POST로 data 추가하기

    2024.11.08 by simstealer

  • [Node.js] Http Routing

    2024.11.08 by simstealer

  • [Node.js] Web Server Create

    2024.11.08 by simstealer

  • [Unity] AnimationCurve

    2024.05.02 by simstealer

  • [C#] 제네릭

    2024.04.16 by simstealer

[Unity] Reflection 기반 모델 생성/세팅 비용 비교

목적실서비스에서 사용 중인 Reflection 기반 모델 생성(Activator/SetValue)이 로딩 구간 비용에 기여할 수 있어, “생성/세팅 경로 통제(캐싱)”의 효과를 재현/측정했다.전/후 결과 (Unity Profiler, 동일 데이터/반복 생성)구분방식GC AllocCPU TimeBeforeActivator.CreateInstance + FieldInfo.SetValue9.9 MB232.62 msAfterFactory(new) + Cached Delegate Setter6.1 MB26.20 ms CPU Time: 232.62 → 26.20ms (약 88.7%↓, 약 8.9배 개선)GC Alloc: 9.9 → 6.1MB (약 38.4%↓)해석 / 적용Reflection/Activator 경로는..

유니티 2026. 1. 20. 23:50

[Unity] JSON 로딩 GC Alloc 스파이크 재현 및 개선 방향 검증

0) Executive Summary (3줄)Unity에서 Newtonsoft JToken.Parse() 기반 전체 파싱이 로딩 구간에 큰 GC Alloc/프리징을 유발할 수 있음을 재현했다.동일 입력(JSON)에서 스트리밍 읽기(Forward-only) 방식으로 접근했을 때 **GC Alloc 86%↓, CPU 시간 76%↓**로 개선 효과를 확인했다.결론적으로 “전체 파싱/대량 객체 생성”을 피하고, 필요 데이터만 읽는 구조 + 생성 경로 통제가 로딩 안정화와 회귀 방지에 유효하다.1) 실험 목적앱 실행 1회 로딩에서 발생하는 대규모 GC Alloc 스파이크(프레임 스톱)를 재현하고,측정 기반으로 원인-대응을 매칭해 “개선 방향이 실제로 효과가 있는지”를 빠르게 검증한다.2) 실험 환경 / 방법Uni..

유니티 2026. 1. 20. 23:24

[스크립트] 포트폴리오 스크립트

보호되어 있는 글입니다.

보호글 2025. 11. 21. 12:57

[Node.js] POST로 data 추가하기

const http = require('http');const target = {a: "a", b: "b"};const server = http.createServer((req, res) => { if (req.method === 'POST' && req.url === '/home') { req.on('data', (data) => { const stringify = data.toString(); Object.assign(target, JSON.parse(stringify)); }); } else { if (req.url === '/home') {..

Node.json 2024. 11. 8. 18:45

[Node.js] Http Routing

const http = require('http');const server = http.createServer((req, res) => { if (req.url === '/home') // http//localhost:3000/home { res.writeHead(200, {'Content-Type': 'application/json'}); res.end(JSON.stringify({a: "a", b: "b"})); } else if (req.url === '/about') // http//localhost:3000/about { res.setHeader('Content-Type', 'text/html'); res.write('..

Node.json 2024. 11. 8. 18:18

[Node.js] Web Server Create

// Textconst http = require('http');const server = http.createServer((req, res) => { res.writeHead(200, {'Content-Type': 'text/html'}); res.end(` Server Response This is a server response. `);});server.listen(3000, () => { console.log('Server is running on port 3000');});// JavaScripts Objectconst http ..

Node.json 2024. 11. 8. 18:05

[Unity] AnimationCurve

- Script를 만들어서 오브젝트를 만들어서 붙여주고 x, y ,z 값을 입력해줍니다.using UnityEngine;namespace AnimationCurvePractice{ public class AnimationCurveTest : MonoBehaviour { [SerializeField] private AnimationCurve x_animationCurve; [SerializeField] private AnimationCurve y_animationCurve; [SerializeField] private AnimationCurve z_animationCurve; private float curTime; [Serializ..

유니티 2024. 5. 2. 10:01

[C#] 제네릭

using System.Cllections; using System.Collections.Generic; using UnityEngine; using System; public class Generic { private T data; public T Test01Generic(T n) { return n; // 여기서 T는 클래스에서 받은 타입 } // 여기서 G는 함수에서 인자로 받은 값의 타입 public T Test02Generic(G n) { T tt = data; return tt; } }

유니티 2024. 4. 16. 14:08

추가 정보

인기글

최신글

페이징

이전
1 2 3 4 ··· 28
다음
TISTORY
심스틸러 © Magazine Lab
페이스북 트위터 인스타그램 유투브 메일

티스토리툴바