Add 2016 november recap
This commit is contained in:
@@ -450,4 +450,63 @@ We will. Stay tuned.</p>
|
||||
Итак, вы хотите, чтобы наша игра стала реальностью? Присоединяйтесь к нам. Вместе мы будем править галактикой. Или можете просто подождать. Мы не бросили все это несколько лет назад. Не станем и сейчас.
|
||||
В конце концов, есть только один способ создать годный инструмент (а это наша первоначальная цель, если вы помните) - мы должны использовать его сами.
|
||||
Мы будем. Следите за новостями.</p>
|
||||
<p>Счастливого 2017-го. Пусть он будет простым.</p></summary></entry></feed>
|
||||
<p>Счастливого 2017-го. Пусть он будет простым.</p></summary></entry><entry><title>November 2016 recap</title><link href="http://opengamestudio.org/2016-november-recap.html" rel="alternate"></link><updated>2016-12-15T00:00:00+03:00</updated><author><name>Opensource Game Studio</name></author><id>tag:opengamestudio.org,2016-12-15:2016-november-recap.html</id><summary type="html"><p><img alt="November recap" src="http://opengamestudio.org/2016-12-15_2016-november-recap.png" /></p>
|
||||
<p>This article describes the start of MJIN library separation into modules.</p>
|
||||
<p>Once we built OpenSceneGraph for Android, it became obvious that some MJIN functionality is not suitable for Android. For example, UIQt provides a basis for OGS Editor UI. Since OGS Editor is a desktop application, we don't need UIQt for Android.</p>
|
||||
<p>We decided to have a look at two approaches to separate MJIN into modules: build-time separation and run-time one.
|
||||
<strong>Build-time</strong> separation means MJIN becomes highly configurable and each platform gets specifically tailored MJIN build.
|
||||
<strong>Run-time</strong> separation means MJIN is divided into smaller libraries that are connected at run-time, which makes it easy to change functionality without rebuilding.</p>
|
||||
<p><strong>Run-time separation research.</strong></p>
|
||||
<p>Since run-time separation has more benefits, we started researching it first.
|
||||
The easiest way to achieve it was to use C API, because C ABI rules are much simpler than C++ one's.</p>
|
||||
<p>We created a sample project consisting of the application, library, and plugin.
|
||||
<strong>The application</strong> has been linked to the library and used it to load the plugin.
|
||||
<strong>The library</strong> provided functions to register plugins and call their functions.
|
||||
<strong>The plugin</strong> provided functions for the library and called library functions.</p>
|
||||
<p>The research was successful: the sample project worked correctly under Linux and Windows. However, since MJIN is currently a single large entity, we postponed C API application until we finish build-time separation.</p>
|
||||
<p><strong>Build-time separation start.</strong></p>
|
||||
<p>We extracted the following modules from MJIN:</p>
|
||||
<ul>
|
||||
<li>
|
||||
<p>Android: provides Java Native Interface (JNI) to MJIN</p>
|
||||
</li>
|
||||
<li>
|
||||
<p>Sound: provides access to OpenAL</p>
|
||||
</li>
|
||||
<li>
|
||||
<p>UIQt: provides access to Qt UI</p>
|
||||
</li>
|
||||
</ul>
|
||||
<p>Sound and UIQt modules are currently statically linked into MJIN library, while Android module is already a separate library due to JNI requirements.</p>
|
||||
<p>In the coming year, we're going to significantly restructure MJIN so that it suits as many platforms as possible.</p>
|
||||
<p>That's it for describing the start of MJIN library separation into modules.</p></summary></entry><entry><title>Ноябрь 2016 кратко</title><link href="http://opengamestudio.org/2016-november-recap-ru.html" rel="alternate"></link><updated>2016-12-15T00:00:00+03:00</updated><author><name>Opensource Game Studio</name></author><id>tag:opengamestudio.org,2016-12-15:2016-november-recap-ru.html</id><summary type="html"><p><img alt="November recap" src="http://opengamestudio.org/2016-12-15_2016-november-recap.png" /></p>
|
||||
<p>Эта статья описывает начало разделения библиотеки MJIN на модули.</p>
|
||||
<p>Как только мы собрали OpenSceneGraph для Android, стало очевидно, что часть функционала MJIN не нужна на Android. Например, UIQt - это основа интерфейса Редактора. Раз Редактор - это приложение для ПК, то UIQt не нужен на Android.</p>
|
||||
<p>Мы решили рассмотреть два подхода к разделению MJIN на модули: во время сборки (build-time) и исполнения (run-time).
|
||||
Разделение <strong>во время сборки</strong> означает гибкую систему настроек MJIN, что позволит собирать её различно под каждую платформу.
|
||||
Разделение <strong>во время исполнения</strong> означает разделение MJIN на несколько небольших библиотек с последующим соединением во время исполнения, что позволит легко менять функционал без повторной сборки.</p>
|
||||
<p><strong>Исследование разделения во время исполнения.</strong></p>
|
||||
<p>Т.к. разделение во время исполнения имеет больше преимуществ, мы начали с этого подхода.
|
||||
Самый простой способ достичь его заключался в использовании C API, т.к. правила C ABI намного проще правил C++ ABI.</p>
|
||||
<p>Мы создали маленький проект, включающий в себя приложение, библиотеку и плагин.
|
||||
<strong>Приложение</strong> было слинковано с библиотекой и использовало её для загрузки плагина.
|
||||
<strong>Библиотека</strong> предоставляла функции для регистрации плагина и вызывала его функции.
|
||||
<strong>Плагин</strong> предоставлял функции для библиотеки и вызывал её функции.</p>
|
||||
<p>Исследование прошло на ура: проект работал в полном соответствии с нашими ожиданиями на Linux и Windows.
|
||||
Тем не менее, т.к. MJIN на текущий момент является большой монолитной сущностью, мы отложили применение C API до окончания разделения во время сборки.</p>
|
||||
<p><strong>Начало разделения во время сборки.</strong></p>
|
||||
<p>Мы выделили следующие модули из MJIN:</p>
|
||||
<ul>
|
||||
<li>
|
||||
<p>Android: предоставляет Java Native Interface (JNI) к MJIN</p>
|
||||
</li>
|
||||
<li>
|
||||
<p>Sound: предоставляет доступ к OpenAL</p>
|
||||
</li>
|
||||
<li>
|
||||
<p>UIQt: предоставляет доступ к Qt</p>
|
||||
</li>
|
||||
</ul>
|
||||
<p>Модули Sound и UIQt на текущий момент статически линкуются в MJIN, тогда как модуль Android линкуется динамически из-за ограничений JNI.</p>
|
||||
<p>В следующем году мы изменим структуру MJIN так, чтобы её можно было легче собрать под разные платформы.</p>
|
||||
<p>На этом мы заканчиваем статью о начале разделения библиотеки MJIN на модули.</p></summary></entry></feed>
|
||||
@@ -226,4 +226,33 @@ At the same time, such a harsh environment highlighted weak spots in our technol
|
||||
So. You want our game to become a reality? Join us. Together we will rule the galaxy. Or just wait and see. We didn't stop several years ago. We won't stop now.
|
||||
After all, there is only one way to create a fine tool (and it's our initial goal if you remember) - we need to use it ourselves.
|
||||
We will. Stay tuned.</p>
|
||||
<p>Happy 2017. Let it be simple.</p></summary></entry></feed>
|
||||
<p>Happy 2017. Let it be simple.</p></summary></entry><entry><title>November 2016 recap</title><link href="http://opengamestudio.org/2016-november-recap.html" rel="alternate"></link><updated>2016-12-15T00:00:00+03:00</updated><author><name>Opensource Game Studio</name></author><id>tag:opengamestudio.org,2016-12-15:2016-november-recap.html</id><summary type="html"><p><img alt="November recap" src="http://opengamestudio.org/2016-12-15_2016-november-recap.png" /></p>
|
||||
<p>This article describes the start of MJIN library separation into modules.</p>
|
||||
<p>Once we built OpenSceneGraph for Android, it became obvious that some MJIN functionality is not suitable for Android. For example, UIQt provides a basis for OGS Editor UI. Since OGS Editor is a desktop application, we don't need UIQt for Android.</p>
|
||||
<p>We decided to have a look at two approaches to separate MJIN into modules: build-time separation and run-time one.
|
||||
<strong>Build-time</strong> separation means MJIN becomes highly configurable and each platform gets specifically tailored MJIN build.
|
||||
<strong>Run-time</strong> separation means MJIN is divided into smaller libraries that are connected at run-time, which makes it easy to change functionality without rebuilding.</p>
|
||||
<p><strong>Run-time separation research.</strong></p>
|
||||
<p>Since run-time separation has more benefits, we started researching it first.
|
||||
The easiest way to achieve it was to use C API, because C ABI rules are much simpler than C++ one's.</p>
|
||||
<p>We created a sample project consisting of the application, library, and plugin.
|
||||
<strong>The application</strong> has been linked to the library and used it to load the plugin.
|
||||
<strong>The library</strong> provided functions to register plugins and call their functions.
|
||||
<strong>The plugin</strong> provided functions for the library and called library functions.</p>
|
||||
<p>The research was successful: the sample project worked correctly under Linux and Windows. However, since MJIN is currently a single large entity, we postponed C API application until we finish build-time separation.</p>
|
||||
<p><strong>Build-time separation start.</strong></p>
|
||||
<p>We extracted the following modules from MJIN:</p>
|
||||
<ul>
|
||||
<li>
|
||||
<p>Android: provides Java Native Interface (JNI) to MJIN</p>
|
||||
</li>
|
||||
<li>
|
||||
<p>Sound: provides access to OpenAL</p>
|
||||
</li>
|
||||
<li>
|
||||
<p>UIQt: provides access to Qt UI</p>
|
||||
</li>
|
||||
</ul>
|
||||
<p>Sound and UIQt modules are currently statically linked into MJIN library, while Android module is already a separate library due to JNI requirements.</p>
|
||||
<p>In the coming year, we're going to significantly restructure MJIN so that it suits as many platforms as possible.</p>
|
||||
<p>That's it for describing the start of MJIN library separation into modules.</p></summary></entry></feed>
|
||||
Reference in New Issue
Block a user