wooseokyourself / shmup

OpenGL based game
MIT License
0 stars 0 forks source link

Optimizing by singleton class #29

Closed wooseokyourself closed 3 years ago

wooseokyourself commented 3 years ago

Bullet 과 같이 끝없이 생성될 수 있지만 위치 빼고는 그리 중요하지 않은 객체는 굳이 계속 생성하지 말고 싱글톤 클래스로 만든 뒤, draw 에서 model-view matrix 를 인자로 받아 그리기만 하면 되지 않을까?

wooseokyourself commented 3 years ago

Assn 3-2에서 적용