Jump to content
HeadStone

Falcon BMS

Recommended Posts

Suriken

Очень рекомендую к изучению TO-BMS1F-16CM-34-1-1 АВИОНИКА И НЕЯДЕРНОЕ ОРУЖИЕ

Страница HARM №199(В Adobe Acrobat XI Pro) . Для себя я перевел необходимое . Но вы насколько знаю владеете английским.

Edited by Suriken

Share this post


Link to post
Share on other sites
Suriken

Неожиданные данные о том как работает BMS Falcon . Оставляю в оригинале ,те кому нужен перевод Гугл Хром вполне справляется.

  • Fact (and I stated that in the past many times) - BMS and the original F4 source are actually over-threaded - Means that since the beginning, even though there weren't any available extra cores on CPU, the original team believed in a design with multiple threads
  • Fact - BMS has a couple of main threads:
    1. Sim thread - Runs all sim logic (physics, FM, weapons, avionics etc)
    2. Rendering thread - Runs all the necessary for graphics (draw calls preparations, vector/matrices calculations etc)
    3. Campaign thread - I'm no expert here but I guess mostly the campaign logic
    4. VU thread - Runs all VU stuff, management of the entities, lifetime management, position updates, garbage collection etc
    5. New (DX11) rendering engine thread - Execute the draw calls on the device in a pure async fashion (i.e while the rendering thread prepare the draw calls, there is no more access from there to the device, but the device is locked by the engine and only the engine is allowed to run directly on it - There some edge cases exceptions though, but the general idea is clear)
    6. Loader thread - Responsible for loading stuff async (models, textures, terrain sectors and what have you).

    Now, other than those, there are also some worker threads for various tasks.

    So, stating that BMS code is single-core oriented isn't only wrong but is actually opposite from the truth, and can be verified easily by watching task manager CPU graph (you won't see 1 core maxed out and the rest doing nothing, which is the ONLY way that a single core oriented application can run).
  • Fact - Running campaign here on a 9700K (which is 8/8 ) I can see the CPU going between 25-45% - Even 25% is equivalent to at least 2 cores of this CPU (Yes I'm running on a dev version, which is a bit different but still I saw similar numbers in 4.35 as well) - FWIW, during many campaign tests here, the lower FPS I saw was ~30 and only at airbases where many many objects and aircrafts are usually around, in air I get ~45-50 minimum, usually it's in the 60-70 area - GTX-1080 and 2K res with Multi sampling x4
  • Fact - The new DX11 engine is a state of the art design and implementation (Disclaimer to deny any rumors, the new engine is NOT my work) that decouples entirely (or as much as possible) the rendering from the rest of the sim - That's why you can see now the 3rd FPS counter at very high numbers like above 250-300 and even more - The BMS current requirements hardly give the GPU and real challenge
  • Fact - BMS current state (and since the original F4 code), although multi-threaded doesn't allow full usage of the CPU, mainly due to dependency and time that the threads are spending in wait state in a given frame - THAT is the real problem of my the CPU can't reach 90-100% utilization with BMS, getting there isn't impossible but will require a lot of work
  • Fact - Work being done as we speak to try and improve some of what take CPU time in a given frame, hopefully things will get better, even for the coming 4.35 U1
  • Assumption - Even developing future, modern APIs, rendering techniques etc don't promise getting 100% CPU utilization in a flight sim ALL THE TIME - I can think of situations that optimal code (someday) can get close to it but not sure if full utilization of all cores is even practical, unless you are M$ for example - But who knows, never say never

In general, regarding the problems that people report and that giving up shadows passes saves a lot of FPS for them, I can't really explain. Shadow pass for sure will be expensive, but I can't explain the raise from e.g 30 to 100 FPS, I think people aren't measuring accurately icon_smile.gif

Cheers!

And just for completing the previous post.

BMS code can be more efficient multi-core wise if we can:
1. Find the bottlenecks that justify parallelism
2. Check what it'll take to untangle them (Could be very hard or relatively easy)
3. Refactor the candidate part of the code to be parallelized (And separate to critical sections if necessary).
4. Refactor the areas that touch that part in a way that they can play together again.
5. Measure performance and hope you indeed gained something icon_mrgreen.gif

Hot areas in code that for sure will gain from parallelism:
Aircraft DoLogic function (Basically the main loop of Aircraft code)
Exec code for ground units (Same, for ground units)

Basically anything that use a lot of CPU time and run in loops over X number of objects will probably gain some by running the same loop in multiple threads.

 

 

И ЭТО в игре которой 23 Года !  Какая игра может повторить ))) 

Ветка о чем вообще речь  тут - https://www.benchmarksims.org/forum/showthread.php?41003-RTX-30**

Edited by Suriken

Share this post


Link to post
Share on other sites
Suriken
11 часов назад, испанский_летчик пишет:

Они разве не от Free Falcon отпочковались?

https://github.com/FreeFalcon/freefalcon-central

https://github.com/rerunner/FreeFalcon

Их ,те кто пытался сохранить Falcon было несколько итераций . В итоге игра стала жить только в команде BMS . И никто от этого решения не пострадал - а выиграли ВСЕ . Я вчера в мега паке бучкался с СУ 30 - весело.))) И главное - Жизнь в Falcon есть ,в отличие от мертвых болот у похожего продукта .

Share this post


Link to post
Share on other sites
Bucks

Вообще занятно, конечно, что на одном только энтузиазме можно сделать настолько качественный и бесплатный продукт. А можно собрать огромный бюджет (как Star Citizen, например) и не сделать ничего )

Share this post


Link to post
Share on other sites
испанский_летчик
1 час назад, Suriken пишет:

Их ,те кто пытался сохранить Falcon было несколько итераций . В итоге игра стала жить только в команде BMS . И никто от этого решения не пострадал - а выиграли ВСЕ . Я вчера в мега паке бучкался с СУ 30 - весело.))) И главное - Жизнь в Falcon есть ,в отличие от мертвых болот у похожего продукта .

Я к тому, что первоначальные идеи можно подсмотреть и в исходниках, если очень интересно.

Share this post


Link to post
Share on other sites
Suriken
28 минут назад, испанский_летчик пишет:

Я к тому, что первоначальные идеи можно подсмотреть и в исходниках, если очень интересно.

Можно ,но для чего ? Я не программист и мне сложно что либо там увидеть. Потому ,когда это разъяснили сами разработчики ,я понял насколько вперед смотрели те люди ,кто создал этот шедевр  - Falcon . Который вырос в  Falcon BMS и который продолжает расти . Полным ходом идут работы по VR . Посмотрите что происходит с графикой . Это невероятные изменения - и Все это бесплатно . По масштабу происходящего что то похожего я не знаю . 

Share this post


Link to post
Share on other sites
испанский_летчик
3 часа назад, Suriken пишет:

Потому ,когда это разъяснили сами разработчики ,я понял насколько вперед смотрели те люди ,кто создал этот шедевр  - Falcon

Я видел 20 летней давности код с многопоточностью и могу сказать: не всегда его можно назвать шедевром на одном лишь этом основании.

Edited by испанский_летчик

Share this post


Link to post
Share on other sites
Suriken
1 час назад, испанский_летчик пишет:

Я видел 20 летней давности код с многопоточностью и могу сказать: не всегда его можно назвать шедевром на одном лишь этом основании.

Я не эксперт по кодам 20 летней давности .

Но могу с уверенностью сказать что у Falcon с кодом 20 летней давности все в порядке .У меня есть основания . Я пользователь и меня все устраивает.

Share this post


Link to post
Share on other sites
испанский_летчик
2 часа назад, Suriken пишет:

Но могу с уверенностью сказать что у Falcon с кодом 20 летней давности все в порядке .У меня есть основания . Я пользователь и меня все устраивает.

Скрепами повеяло) Всё в порядке так всё в порядке. Автор текста, правда, на простои жалуется, но кого это беспокоит)

Edited by испанский_летчик

Share this post


Link to post
Share on other sites
Suriken
1 час назад, испанский_летчик пишет:

Скрепами повеяло) Всё в порядке так всё в порядке. Автор текста, правда, на простои жалуется, но кого это беспокоит)

Автор текста решит и эту проблему . и меня это не беспокоит . Я играю без нареканий. 

Вас что то беспокоит ?

 

Share this post


Link to post
Share on other sites
испанский_летчик
1 час назад, Suriken пишет:

Автор текста решит и эту проблему

Не решит. Это фундаментальная проблема.

1 час назад, Suriken пишет:

Вас что то беспокоит

Забудьте!

Share this post


Link to post
Share on other sites
Suriken
19 часов назад, испанский_летчик пишет:

Не решит. Это фундаментальная проблема.

Таких проблем было много нерешаемых и фундаментальных - решили . Решат и эту.

Share this post


Link to post
Share on other sites
Suriken
19 часов назад, испанский_летчик пишет:

Забудьте!

Уже.

Share this post


Link to post
Share on other sites
испанский_летчик
1 час назад, Suriken пишет:

Таких проблем было много нерешаемых и фундаментальных - решили . Решат и эту.

Вы не программист - Вам виднее.

И прошу заметить, я нигде не сказал что Falcon BMS сделан плохо, или он мне не нравится.

Edited by испанский_летчик

Share this post


Link to post
Share on other sites
Suriken
18 часов назад, испанский_летчик пишет:

Вы не программист - Вам виднее.

И прошу заметить, я нигде не сказал что Falcon BMS сделан плохо, или он мне не нравится.

Я так старательно забыл ,по вашей просьбе . А тут що ,опять ))) Может сменим тон и смысл общения на более конструктивный ? Можно попробовать слетать в Фалькон кампанию . Будет ,надеюсь ,больше пользы ,чем рассуждения о трудностях программного кода Фалькон. Кстати ,если он вам все таки нравится - Как вам противоракеты ? Еще не пробовали атаковать ПВО которое может сбить вашу ракету? 

Share this post


Link to post
Share on other sites
Bucks
В 31.01.2021 в 15:07, Suriken пишет:

Да.

При попытке скачать выяснил, что наш ГопСтопНадзор заблокировал доступ к MediaFire. Обожаю, [censored], эту страну... Вобщем, VPN нам всем в помощь)

Share this post


Link to post
Share on other sites
Foka-As777
47 минут назад, Bucks пишет:

При попытке скачать выяснил, что наш ГопСтопНадзор заблокировал доступ к MediaFire. Обожаю, [censored], эту страну... Вобщем, VPN нам всем в помощь)

Прямое скачивание не пробовал? У меня все скачалось и установилось, красота.

Share this post


Link to post
Share on other sites
Bucks
9 часов назад, Foka-As777 пишет:

Прямое скачивание не пробовал? У меня все скачалось и установилось, красота.

А какое там еще прямое? На Бенчмарке вот эта ссылка на MediaFire

image.png.a06d52aaa2f9673e30b657cb1693a9a3.png

Нет, я конечно скачал без проблем, включив в опере VPN, но в очередной раз подивился, как у нас лихо все подряд перекрывают)

Share this post


Link to post
Share on other sites
Foka-As777
1 час назад, Bucks пишет:

А какое там еще прямое? На Бенчмарке вот эта ссылка на MediaFire

image.png.a06d52aaa2f9673e30b657cb1693a9a3.png

Нет, я конечно скачал без проблем, включив в опере VPN, но в очередной раз подивился, как у нас лихо все подряд перекрывают)

Я пользуюсь яндексом, никаких подобных проблем не было

Share this post


Link to post
Share on other sites
Bucks
14 минут назад, Foka-As777 пишет:

Я пользуюсь яндексом, никаких подобных проблем не было

Ну броузер-то здесь ни при чем) Наш ГопСтопНадзор заблокировал mediafire. А дальше вопрос к тому, как Вы подключаетесь, и как эти блокировки обходите. Обычное решение - VPN.

Share this post


Link to post
Share on other sites
shishkin

Там же  есть torrent по ссылке: https://www.benchmarksims.org/forum/showthread.php?40646-Falcon-BMS-4-35-Full-Installer

Без всяких mediafire.

А блокировка mediafire видимо от провайдера зависит, у меня и mediafire доступен. Но я туда никогда не хожу

Share this post


Link to post
Share on other sites
Bucks
56 минут назад, shishkin пишет:

Там же  есть torrent по ссылке: https://www.benchmarksims.org/forum/showthread.php?40646-Falcon-BMS-4-35-Full-Installer

Без всяких mediafire.

А блокировка mediafire видимо от провайдера зависит, у меня и mediafire доступен. Но я туда никогда не хожу

Да речь-то не про Falcon BMS 4.35 как таковой, с ним все понятно, а про "Корея 2012 Megapack 3.5" ) С ним тоже все понятно, но с моим провайдером только через VPN)

Edited by Bucks

Share this post


Link to post
Share on other sites
shishkin

Понял ) Если надо скачать скажи

Share this post


Link to post
Share on other sites
Bucks

Спасибо, буду иметь ввиду. Ну и чтобы не перерывать два форума целиком, спрошу в сотый, наверное, раз: аксакалы, подскажите, как перенести настройки управления (джой + руд) из 4.34 в 4.35. В каких файлах они хранятся?

UPD Все, увидел - из 4.34 экспортируем настройки в файл с расширением .key, а в 4.35 его загружаем. А профиль пилота перенести?

Edited by Bucks

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...