About Store Forum Documentation Contact



Post Reply 
question of the source code Ineisis
Author Message
Babulesnik Offline
Member

Post: #1
question of the source code Ineisis
Why are using Time.wait(1) in Server->main.es
Code:
bool Update()
{
   if(Kb.bp(KB_ESC))return false;

   Gui.update();
   Server.update();
   Time.wait(1);

   return true;
}
10-27-2011 08:54 PM
Find all posts by this user Quote this message in a reply
Babulesnik Offline
Member

Post: #2
RE: question of the source code Ineisis
In the future there will be more comments in the source code Ineisis? I find it hard to learn it. I have to parse each line.It would be nice to see documentation that shows the detailed structure / architecture Ineisis.Also causes inconvenience to use "Code Editor". I really like working in VisualStudio.Will the project is created by VS?
(This post was last modified: 11-19-2011 01:40 PM by Babulesnik.)
11-19-2011 01:37 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #3
RE: question of the source code Ineisis
I can add "adding more code comments" to roadmap
11-19-2011 01:39 PM
Find all posts by this user Quote this message in a reply
Babulesnik Offline
Member

Post: #4
RE: question of the source code Ineisis
(11-19-2011 01:39 PM)Esenthel Wrote:  I can add "adding more code comments" to roadmap
Thank you very much
11-19-2011 01:41 PM
Find all posts by this user Quote this message in a reply
Babulesnik Offline
Member

Post: #5
RE: question of the source code Ineisis
The class is only one angle, the axis of y. But I have a tank will go to the mountains and heel. I just need add to classes two interpolator for x and y axes ?
Code:
class Neighbor : BlendObject
{
  ...
   Interpolator3S   pos;
   InterpolatorA    angle_x;
   InterpolatorA    angle_y;
   InterpolatorA    angle_z;
}
11-21-2011 08:22 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #6
RE: question of the source code Ineisis
yes
11-22-2011 12:11 AM
Find all posts by this user Quote this message in a reply
Babulesnik Offline
Member

Post: #7
RE: question of the source code Ineisis
Why when receiving data, are using the cycle REP and why 16 ?
Code:
REP(16)if(!Server.receive(0))
11-23-2011 12:31 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #8
RE: question of the source code Ineisis
to process 16 commands at once
you can use different number
11-26-2011 11:13 PM
Find all posts by this user Quote this message in a reply
Babulesnik Offline
Member

Post: #9
RE: question of the source code Ineisis
Why in the container before the action is used "lockedData(i)"
Code:
NeighborClients.lockedData(i)
In the class of "Map" I have not found a detailed explanation
Code:
// access i-th   element data from container, this   can  be used   after locking and before unlocking the container
- but what do "lock" and "unlock" container ?

For a list of players I'm using container "memx" .Can there be problems with using this container for such purposes ??? Or to have to create a list of players using the Map???For example:Map<SockAddr, Player> ListPayers
11-27-2011 02:07 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #10
RE: question of the source code Ineisis
you're free to use any container you wish, each has different advantages
lock, unlock is to avoid mult-threading issue, you can ignore this since all player operations should be done on 1 main thread only
12-01-2011 12:11 PM
Find all posts by this user Quote this message in a reply
Babulesnik Offline
Member

Post: #11
RE: question of the source code Ineisis
(12-01-2011 12:11 PM)Esenthel Wrote:  you're free to use any container you wish, each has different advantages
lock, unlock is to avoid mult-threading issue, you can ignore this since all player operations should be done on 1 main thread only
thanks,but if I use a dedicated server i-series(i3,5,7) processors should I have to use the "lock/unlock"? What could be the problem if I ignore it?
12-02-2011 06:46 PM
Find all posts by this user Quote this message in a reply
Babulesnik Offline
Member

Post: #12
RE: question of the source code Ineisis
(12-02-2011 08:07 PM)aceio76 Wrote:  
(12-02-2011 06:46 PM)Babulesnik Wrote:  
(12-01-2011 12:11 PM)Esenthel Wrote:  you're free to use any container you wish, each has different advantages
lock, unlock is to avoid mult-threading issue, you can ignore this since all player operations should be done on 1 main thread only
thanks,but if I use a dedicated server i-series(i3,5,7) processors should I have to use the "lock/unlock"? What could be the problem if I ignore it?

Those aren't related with each other. The lock/unlock is strictly for multi-threading, to prevent non-thread safe access to shared data. Containers pertain to Memc, Memx, Meml, etc. To understand potential problems with not using the locks, you will need to understand how multi-threading works.

Thank you very much
12-03-2011 10:42 AM
Find all posts by this user Quote this message in a reply
Post Reply