marceloborghi's Forum Posts

  • Kyatric i make [Plugin] Download via url and convert format archive. Can you add my plugin to this list?

    name [Plugin] Download via url

    construct.net/forum/extending-construct-2/addons-29/plugin-download-via-url-and-co-136226

  • tunepunk The optimization I want to bring is not only the question of real-time collision reduction, but how to optimize all kinds of objects and events, application structures and all the content below:

    The content:

    How to Identify and Solve Project Optimization Problems

    How to make apps and games evenly used for old and new devices

    How to optimize plugins and objects despite using events

    How to optimize codes

    How to optimize sounds

    Working with advertisements more optimally

    Understand how to optimize with webviews and what they serve.

    Know and identify the 3 lines of devices, their hardware and their processing power.

    Understand how the processor and RAM works

    And a little more in a few hours of content ^^

  • I was busy these months with work in the bank and studies, but it's not about turns to leave the cpu at 0 Jayjay. A processor has execution power of millions to billions per second. It is an incredible speed, if you create beginning and death and processes correctly, the processor will make the processor do the calculation so fast that it will not go up the use of cpu. This is the point. Lifetime of processes occurring in real time, is not turns.

  • LAST NOTE

    the plugin cordova file transfer 2 was taken from the air, which is a dependency of the project, I will check if a subtitle, once it was depreciated the original plugin of the cordova, for now it is so working for web projects, without a compatible cordoba plugin will run for while neither android or ios

    -------------

    The file is converted by the application generating the correct extension,

    without generating bin files, such as the download system offered by scirra

    (even old cell phones like android 4.4 saves the correct extension)

    --------------

    Note

    Need put url with extesion archive and name of archive example (www.site.com/image.png)

    No work without name and extension archive in url string

    -----------

    Work with all archive formats

    --------

    Convert archive formt, but need archive same family

    Example (image "png to jpeg" video "wmv to mp4")

    --------------

    FILENAME pro while only works on NW.JS

    I will still associate with the string (android and ios)

    to accept the given name and not get the original file name

    -------------

    1-Some Browsers without download tag support for image in preview mode of Construct 2

    2- Work fine for download imagem e other formats of archive in preview mode with Web Broswer Edge

    3- Other Browser without download tag support for image in preview mode of Construct 2

    work with other types of archive. E.g video

    ------

    4- Construct 2 project Exports Work with desktop (nw.js), with cordova to Android and IOS

    ------------

    More Example of MIME_types (image in folder doc)

    developer.mozilla.org/pt-BR/docs/Web/HTTP/Basico_sobre_HTTP/MIME_types

    ---------

    plugin cordova

    -----------

    Put in xml archive

    <plugin name="cordova-plugin-file-transfer2" spec="*" />

    Or instal cordova plugin in project via cocoon (plugins project), or visual studio, or other.

    ---------------

    docs plugin cordova

    npmjs.com/package/cordova-plugin-file-transfer2

    -------------

    The sdk 26 android will need the user to give permission to save the file. To create this just create an action from execute java script and use the code "cordova.plugins.diagnostic.requestExternalStorageAuthorization ();" and install the cordova plugin:

    github.com/dpa99c/cordova-diagnostic-plugin.git

    --------------------------------

    Plugin

    drive.google.com/open

    ----------

    doc and examples

    drive.google.com/open

  • The construct makes 3d natively, as long as it knows what is 3d and how it works and know what is the construct and how it works. And as I know the answer to these questions I do 3d natively within the construct 2. But the post is for something else: it's about optimization and not talking about 3d..

  • I already replied as because the performance of unity is bad, but I believe it should not have read. Unity does not allow control over the execution time of physical libraries. And the construct allows and this makes all the difference.

    I've already made lightweight 3d libraries run on old devices, which were made in the construct. Use of cpu 5%

    The same physics made in unity 45% and break the app on the home screen on the same device. (In this example c2 had a better 9X performance)

    You do not understand how it works and you want to question something that you did not even bother to understand, do not skip steps, understand, then question. And not the other way around. In the same way you mentioned about 3d, it was clear that you do not understand what 3d is and how it works.

  • Jayjay I've given tips to developers who had the CPU usage of 57% and after the tips went into 2 to 5% CPU usage.

    The major point of the bad performance of the Unity be worse than the performance of the construct (knowing the otmizar construct) is that unity has many bibioteclas of physical ready that you can't handle to make it better. And they are running on a loop, consuming processing gradually. Now the construct you but can build a physically equal, you have full control of execution and death processes of physics created and can trigger it only when necessary, and not stay in loop as in the case of unity. This is one of the secrets of optimization that the construct permits and other engines can't: control the execution and death of running processes. I've had projects that were between 0 to 1% of cpu usage.

  • dop2000 I was drowsy and making the subtitles at dawn, translated a little wrong. I am sorry

  • Jayjay The point is not the programming language of unity or js of the construct. The point if comparing to unity it aggregates so much junk and poorly coded physicals and libraries that processing sucks. Apart from incompatibility between devices. The c is faster, but it is not only the code that we are talking about but how we construct as a whole and this unity is extrafetuous and problematic or performance. Ja c2 even js being slower with optimization, from objects, codes and webview, you will perform much faster, smoother and lighter than unity (up to 6 times faster). And as for the use of cpu I have projects that the consumption in movement is only 2% and when for the movement it stays in 1 to 0%

  • > fps is a result of the performance of the processing, optimize the code, objects and the fps problem will solve.

    > The correct is to measure by the use of cpu, that in his case have peaks of consumptions unnecessary and for this the fps is unstable.

    >

    > Link to example

    >

    Subscribe to Construct videos now

    >

    > course of optimization of games in construct 2:

    > viewtopic.php?f=191&t=200735&p=1162604#p1162604

    >

    The Problems stated on this thread I dont think is nothing to do with "optimize the code" have a look at this

    Can you optimize the code on here and stop the Stutters?

    Capx:

    https://www.dropbox.com/s/14nxrodiir87k ... .capx?dl=0

    I run a test with the capx I posted there

    https://www.dropbox.com/s/14nxrodiir87k ... .capx?dl=0

    Videos Tests Exported with Cocoon Webview

    Iphone 6 Test

    https://www.dropbox.com/s/35k4dykvq2ma7 ... 6.mp4?dl=0

    Iphone 7 Test

    https://www.dropbox.com/s/3fxf7xzxanv2o ... 7.mp4?dl=0

    ==========================================

    If you can fix that with your optimization man you have a bright future on Scirra, you gonna fix something that Scirra couldn't do all these Years, and who knows they may end up hiring you lol <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile">

    by the way, I saw really quick you video looks interesting I will have a look more in-depth when I have Time

    tarek2 As I mentioned to solve the problem is not only the code, but fix problems of objects that are poorly optimized. The webview it improves performance, but a code and the non-optimized objects have progressive processing increase and this webview alone does not solve, it only alleviates the problem. What has to be done is corrected the problems of optimization of the objects and code so that it does not have spikes of processes and loops and useless processes that spend processing. Which is easy to solve. If you designate objects and code (construct events) you basically eliminate evolutionary peaks that drop fps.

  • fps is a result of the performance of the processing, optimize the code, objects and the fps problem will solve.

    The correct is to measure by the use of cpu, that in his case have peaks of consumptions unnecessary and for this the fps is unstable.

    Link to example

    Subscribe to Construct videos now

    course of optimization of games in construct 2:

    viewtopic.php?f=191&t=200735&p=1162604#p1162604

  • tunepunk Ashley In the case of the example, collision is the problem, so the scirra has created calculations of the whole stage (even outside the camera that is calculating) with the mathematics of to make two solutions, x and y comparison or to make an intelligent collision field that connects and turns off, thus dropping the cpu.

    Link to example

    Subscribe to Construct videos now

    course of optimization of games in construct 2:

    viewtopic.php?f=191&t=200735&p=1162604#p1162604

  • dop2000 This is just a silly example. I will teach you how to recognize where the problem is, the object or plugin to fix. In the case of the example, collision is the problem, so the scirra has created calculations of the whole stage (even outside the camera that is calculating) with the mathematics of to make two solutions, x and y comparison or to make an intelligent collision field that connects and turns off, thus dropping the cpu.

    Now each type of object has its tricks to optimize.

    Example: data, such as dictionary, array, local storage and others I teach how to create smart update with locks where it deletes loops. So the data is only triggered when needed (based on system start and process death), Ja sounds are based on loop-cuts to optimize them and compression formats, images and sprites with the size that can be cut and spliced not visible. Effects like particles, with cycles and overlapping of time cycles, publishing to see how and where you load and how and where you perform the visualization of it and how you manipulate the cycles of updating it. ajax type internet objects with requesitions.

    I will teach you how to solve these problems in order to manipulate any object.

    The content:

    How to Identify and Solve Project Optimization Problems

    How to make apps and games evenly used for old and new devices

    How to optimize plugins and objects despite using events

    How to optimize codes

    How to optimize sounds

    Working with advertisements more optimally

    Understand how to optimize with webviews and what they serve.

    Know and identify the 3 lines of devices, their hardware and their processing power.

    Understand how the processor and RAM works

    And a little more in a few hours of content ^^

  • Follow the link as requested. BadMario, dop2000, Elliott, , rhg1968, tarek2, DeviatorX19, Jayjay (I delayed because the video was captioned. and work at bank)

    link of example of optimization construct 2

    https://youtu.be/AItCQ5d1KYc

    This example: The time is based on 100 milliseconds so that it runs 10X faster to stress the processor. You will see that even in a stress test the optimization can withstand the test, going up very little.

    NOTE: It is worth remembering that this is a test of processor stress, that in normal situations the use of cpu is lower and without peaks.

    About The course dop2000 will be paid by Udemy.

    The content:

    How to Identify and Solve Project Optimization Problems

    How to make apps and games evenly used for old and new devices

    How to optimize plugins and objects despite using events

    How to optimize codes

    How to optimize sounds

    Working with advertisements more optimally

    Understand how to optimize with webviews and what they serve.

    Know and identify the 3 lines of devices, their hardware and their processing power.

    Understand how the processor and RAM works

    And a little more in a few hours of content ^^

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • This has already been ... both natively 3d without c2, and optimization. Paul Saints. He knows my work. Why scammed dop2000? I'm putting video captions to post. I do not have much time, I have another job "beyond c2 studio", I work in a bank. It's not about having too many things on the screen, even small games have optimization problem BadMario . I'll try to finish the captions when returning from work dop2000