Remove mutlithreading TODO

This commit is contained in:
Tyler Perkins 2021-12-19 20:48:22 -05:00
parent 47450574a8
commit 5ab9d82257

View File

@ -44,17 +44,12 @@ void weather::draw(){
//check if its time to update //check if its time to update
if((std::chrono::high_resolution_clock::now() - _last_update) if((std::chrono::high_resolution_clock::now() - _last_update)
> _update_interval){ > _update_interval){
//TODO multithread this
update(); update();
update_texture(); update_texture();
} }
SDL_RenderCopy(board::getRenderer(), _texture, NULL, NULL); SDL_RenderCopy(board::getRenderer(), _texture, NULL, NULL);
//TODO add this all to one texture
} }
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////