Remove mutlithreading TODO
This commit is contained in:
parent
47450574a8
commit
5ab9d82257
@ -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
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////
|
||||||
|
Loading…
Reference in New Issue
Block a user