Hi all!, the most actual in progress version of VPS C++ sources, for Windows 10, compiled and tested with Visual Studio 2017 it's available from my GitHub repository: https://github.com/migtoledo/vpsim
COMPILING AND RUNNING THE PROJECT
You should have Windows 10 installed on your computer.
Install Visual Studio 2017.
Install the NuGet extension for Git repositories.
Open Visual Studio.
Open a new C++ empty project.
In the Solution's explorer, select your project -> right click.
Manage NuGet packages.
In the NuGet Package Manager - Search for: "Allegro"
Install the last Allegro 5 version, e.g.: Allegro 5.2.4
Come back to Solution's explorer.
Select your project, right click -> properties.
Go to Allegro 5 -> "type library" -> make all dynamic.
Click on "addons" -> turn on all of them: "yes".
Now download the source code from GitHub for VPS.
It is organized as {main.cpp+headers.h+images+fonts.ttf}
copy the files to your project's subdirectory folder, typically: myproject\myproject
Go again to your solution's explorer, on your Visual Studio project:
Add the resource files: images, fonts.ttf
Add the header files
Add the main.cpp file
Compile the solution
You will see the first time gets slowly because it will download the
NuGet packages corresponding to Allegro 5.2.4
Your program should run ok.
Last edit: MIGUEL TOLEDO GONZÁLEZ 2018-09-26
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi again. I have - after some headaches - got the program to really work with native (in source code) multi-thread support. After I could solve the problems of events-interference (mouse+keyboard+timer+numerical calculations delay), I really couldn't believe that it could work fine with 91 particles, and C(91, 2)=4095 interactions-processors. That is, the combinations of 91 elements taken as pairs. Buf! The problem was, that the program was mixing events from different sources in the same event-queue. The solution: parallel management of events, by implementing the corresponding event-queue according to the type of event. Also, processing such a way:
MainProcess={P(eventType1,EventQueue1)+P(eventType2,EventQueue2), ... }, the result: Events of low-frequency doesn't interfere - delay - other events of higher frequency, letting all the kind of events flow in harmony...
Last edit: MIGUEL TOLEDO GONZÁLEZ 2018-09-26
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi all!, the most actual in progress version of VPS C++ sources, for Windows 10, compiled and tested with Visual Studio 2017 it's available from my GitHub repository:
https://github.com/migtoledo/vpsim
COMPILING AND RUNNING THE PROJECT
Last edit: MIGUEL TOLEDO GONZÁLEZ 2018-09-26
Hi again. I have - after some headaches - got the program to really work with native (in source code) multi-thread support. After I could solve the problems of events-interference (mouse+keyboard+timer+numerical calculations delay), I really couldn't believe that it could work fine with 91 particles, and C(91, 2)=4095 interactions-processors. That is, the combinations of 91 elements taken as pairs. Buf! The problem was, that the program was mixing events from different sources in the same event-queue. The solution: parallel management of events, by implementing the corresponding event-queue according to the type of event. Also, processing such a way:
MainProcess={P(eventType1,EventQueue1)+P(eventType2,EventQueue2), ... }, the result: Events of low-frequency doesn't interfere - delay - other events of higher frequency, letting all the kind of events flow in harmony...
Last edit: MIGUEL TOLEDO GONZÁLEZ 2018-09-26