Notice
Recent Posts
Recent Comments
Link
목록레이트레이싱 (1)
비트와 자장가

CPU 멀티쓰레드로 BVH 같은 최적화 없이 실시간 (비스무리하게) 돌아가도록 만든 광선 추적기다. CPU 광선 추적기 실시간성(?)의 핵심은 다음과 같다: voidmulti_record(void) { pthread_tthread[THREAD]; unsigned longid; id = 0; while (id < THREAD) { if (pthread_create(&thread[id], NULL, thread_record, (void *)id)) quit(MALLOC); id++; } while (id--) pthread_join(thread[id], NULL); record_(screen, light, accumulated); } voidpress_key(void) { camera = camera_(se..
개발/결과
2021. 3. 16. 21:37