Search found 10 matches
- 12 Oct 2010, 21:20
- Forum: Engine
- Topic: Population Limit/Unit Cap - Containers - Inquiery
- Replies: 29
- Views: 5934
Re: Population Limit/Unit Cap - Containers - Inquiery
Yes you make a good point, features such as mini maps or zooming out to view the entire battle field like you would in SupCom are desirable features, I was not suggesting you could not have those features, I was hypothesizing with many different scenarios in mind, also I cover more than one concept ...
- 12 Oct 2010, 17:07
- Forum: Engine
- Topic: Population Limit/Unit Cap - Containers - Inquiery
- Replies: 29
- Views: 5934
Re: Population Limit/Unit Cap - Containers - Inquiery
what you mention there (calculating stuff not in view different when stuff in view) is only possible applicable in a very limited scenario. there might be only one player (and probably no spectators), you can not record the match for later replay, or if, the camera would have to be fixed to where i...
- 12 Oct 2010, 16:55
- Forum: Engine
- Topic: Population Limit/Unit Cap - Containers - Inquiery
- Replies: 29
- Views: 5934
Re: Population Limit/Unit Cap - Containers - Inquiery
The details are in rts/Sim/Misc/QuadField.cpp. A sample of which is: /** * Returns all units within @c radius of @c pos, * and treats each unit as a 3D point object */ std::vector<CUnit*> CQuadField::GetUnits(const float3& pos, float radius) { GML_RECMUTEX_LOCK(qnum); // GetUnits std::vector<CU...
- 12 Oct 2010, 16:41
- Forum: Engine
- Topic: Population Limit/Unit Cap - Containers - Inquiery
- Replies: 29
- Views: 5934
Re: Population Limit/Unit Cap - Containers - Inquiery
i guess when he mentioned database (oracle), he meant more an SQL like query language, which has been requested by others already. for example: "SELECT units in (pos, radius) where (health <= 50%)". Not exactly my meaning but I do quite like that idea. Supporting more ways to query the un...
- 12 Oct 2010, 16:29
- Forum: Engine
- Topic: Population Limit/Unit Cap - Containers - Inquiery
- Replies: 29
- Views: 5934
Re: Population Limit/Unit Cap - Containers - Inquiery
zwzsg Sorry If I offended you with my questions your post is almost aggressive in nature. I was and am being formal because I thought it would help. Thank you SpliFF, the way you deal with large numbers of units without having to check all of them for proximity based calculations, i.e. the quadfeild...
- 12 Oct 2010, 15:06
- Forum: Engine
- Topic: Population Limit/Unit Cap - Containers - Inquiery
- Replies: 29
- Views: 5934
Re: Population Limit/Unit Cap - Containers - Inquiery
Thank you Kloot, What SpliFF wrote seemed to contradict what AF wrote. I have read and understand everything that has been posted, It just seemed incomplete. Now thanks to the specifics eg quadfield I see better how it might work. Also thank you for the useful terminology. Do you perhaps know of any...
- 12 Oct 2010, 14:10
- Forum: Engine
- Topic: Population Limit/Unit Cap - Containers - Inquiery
- Replies: 29
- Views: 5934
Re: Population Limit/Unit Cap - Containers - Inquiery
Yes AF I see your point, I get most of what you are saying and it seems like a sensible approach. The part I do not understand is when it comes to an action such as moving the screen or selecting a unit, or rather any operation which would want to know the say X nearest units. Without spatial hashin...
- 12 Oct 2010, 13:52
- Forum: Engine
- Topic: Population Limit/Unit Cap - Containers - Inquiery
- Replies: 29
- Views: 5934
Re: Population Limit/Unit Cap - Containers - Inquiery
Thank you, very informative. Now I would ask: When you move about your map, I imagine you spool (if that is the correct term) the world and units in. So this implies there are only so many units spooled in for each player? Though multiple players is not a topic I am going to cover. But then how do y...
- 12 Oct 2010, 12:51
- Forum: Engine
- Topic: Population Limit/Unit Cap - Containers - Inquiery
- Replies: 29
- Views: 5934
Re: Population Limit/Unit Cap - Containers - Inquiery
Thank you for the reply SpliFF, I am looking more specifically at the way you deal with large spaces, i.e. what form of spatial units if you will is used. Perhaps the project employs a database mechanism such as oracle and only has small code side buffers? In this case does the oracle data based sor...
- 12 Oct 2010, 12:26
- Forum: Engine
- Topic: Population Limit/Unit Cap - Containers - Inquiery
- Replies: 29
- Views: 5934
Population Limit/Unit Cap - Containers - Inquiery
Dear Reader, I would like to enquire as to the current population limit/unit cap which is imposed as a direct result of technical limitations, such as secondary memory constraints or preferably CPU cycles (or any other unexpected average hardware specs, or perhaps software architecture related const...