Conversation
.travis.yml
Outdated
| - cd bin && ./testing && cd .. | ||
| - cd bin && ./testing && cd .. | ||
| - cd bin && ./Test && cd .. | ||
| - cd bin && ./Test && cd .. |
There was a problem hiding this comment.
sai vero che lo esegui due volte e basta? :)
There was a problem hiding this comment.
Sì sì sto solo facendo delle prove…
Adesso infatti ho messo a posto anche quello (spero)
Apparently, with older versions of g++, the constructor for std::tuple is explicit. In order to maximize compatibility, we need to switch to this notation. This breaks the "calligraphy" of the code a bit, but it's DEFINETLY for the best.
|
Dovrei aver sistemato quell'errore di compilazione su g++-5... ma non so esattamente se/come/dove ho finito per pushare i cambiamenti 😅 |
|
Ok, vedo che stanno allineati qua e che ho praticamente invaso il fork di Nico senza nemmeno chiedere permesso... chiedo venia per l'intrusione |
We now have a first working verson with the new graphics... but it's still necessary to clean a lot of stuff and check for stability problems (it seems that sometimes the code randomly freezes or crashes).
|
Sono finalmente riuscito a prendermi un po' di tempo per imparare due righe di GLUT e far andare una mezza grafica decente su NOCS... ora vedo di capire se posso togliere un po' di robe vestigiali rimaste dalla vecchia versione basata su passe_par_tout. |
|
A quanto leggo in giro, GLUT di base non è indicato per nessun tipo di lavoro in multithreading... tant'è che tutti i forum che trovo dicono che lanciare Vedo se trovo qualche metodo rapido per rendere vivibile questa cosa... |
This proper multithreaded implementation places the whole GLUT istance in a completely separate thread with proper mutex and atomic communication. There are still some TODOs: > reimplement properly wait_click() and wait_enter(), they now don't work. > improve the interface for the graphical methods, right now is kinda basic. > evaluate a proper framerate timing, since now it will inevitably skip more than some frames if the simulation is faster than the graphical rendering.
The main idea behind the implementation of wait_click was just plain wrong... You never ever interfere with the flow of the GLUT thread, instead you have to freeze the execution on the main thread. This way, the callback functions actually work and mouse click is detected.
It's not needed anymore
Little better but in the future it might be ideal to study an actual system for custom color assignment.
As for now... I'd say we don't need these two methods to be detached. Maybe in the future? When the tag system will be more documented? We'll see.
Add some rules to create nocs shared and static libraries and add a pretty layout.
Fix many warnings and some (mini) errors.
Add CMakeFile
Working on Windows compatibility...