

To see what parts of the displaylist are redrawn one handy function is (). Commenting out canvasBitmap.lock() immediately cut the displaylist rendering time by about 1/3 when drawing in the application. The odd thing was that the brush preview bitmap which is displayed on top was only rendered where it changed.Īfter some experimenting I found out that locking the bitmapdata of a bitmap object, which supposedly makes drawing faster, invalidates the whole bitmap and makes it get redrawn. Apparently the whole canvas was re-drawn each time it changed just a bit. I had been trying to optimize rendering of the canvas in Pyxel Edit without much luck, but then I tried Adobe Scout (awesome application btw!) that let me know that most of the time in the application was spent by the flash runtime rendering the display list.

If you only change small parts of a bitmap displayed on screen, and you do it often, this can result in a big performance hit.
#Pyxel edit move canvas free#
If you have any issues, feel free to reach out to me on the forums.Short story: In flash, bitmapData.lock() makes drawing faster by only updating the bitmap on screen when calling bitmapData.unlock() after done drawing, but once the bitmap is unlocked the whole bitmap is redrawn, instead of just the changed parts. Hopefully this alleviates confusion while working within the canvas. Please also let us know what difficulties you faced on the forums so that we can resolve them in a future release. This will disable the new canvas so that you can go back to the classic experience. To find the setting, go to the file menu, select app settings, then select advanced settings, and lastly activate the “Render in classic mode” toggle. If you experience difficulties with the new canvas, we’ve provided a toggle under the advanced settings so that you can revert back to the previous experience. To change the text in input boxes, you can double click on them. To test your app, you can now hold the alt key (or Ctrl+Shift on IE) while clicking to activate buttons or other controls. To edit text, simple double click on the control and start typing.

Previously, you would have to drag the control from the edges to move it, which was sometimes difficult to do. The biggest improvement we’ve shipped is the ability to click on a control from anywhere to select it or move it around. To alleviate the confusion, we’ve aligned more closely with PowerPoint and made a change to the way actions are triggered while you’re editing to help prevent accidental actions and to make it easier to select controls. Buttons have been particularly difficult to interact with since you could simultaneously click on them and edit them while authoring. While doing that work, we took the opportunity to improve the way users interact with controls on the canvas, which several users reported as confusing. In this tutorial you will learn about some of the basic operations supported. Alt + Click + movement same as Click + movement.
