Hello. The problem I'm having is that when I publish a swf movie or export a quicktime movie from flash I get lag in the playback. There is no audio associated with my project, the stage dimensions are 1920 X 1080, and the frame rate is 29.97.

I've tried changing my stage size, increasing and decreasing my frame rate, and exporting with different compressions types. If I just knew why it lags I could figure out how to fix it. Unfortunately I am clueless as to the source of the lag.

Thanks in advance for any advice.

Dani AI

Generated

As described the export lags but can play the SWF fine, the issue is most often either heavy runtime rendering (big vectors, masks, filters, lots of active timelines) or a client/export pipeline problem (player settings, wmode/acceleration, or the video codec used at export). Narrowing which side is at fault is the first step.

Try these checks in order: test the SWF in the standalone FlashPlayer (projector) and on a different machine to separate file vs. client; temporarily disable any ActionScript (or remove movieclip timelines) to see if code is the bottleneck; toggle the Flash Player hardware-acceleration setting and, if embedded in a page, try changing/removing wmode (transparent/opaque can kill GPU acceleration); export a very short portion or at lower resolution to compare; and measure actual FPS with a profiler or a simple FPS counter to confirm whether frames are being dropped or the player is simply slow to decode the exported movie.

If rendering is the bottleneck, reduce work per frame: convert static vector art to bitmaps or pre-render complex animations to sprite sheets or bitmap movieclips; avoid many overlapping masks, filters, gradients and blend modes; call stop() on timelines that do not need to run; and use cacheAsBitmap only for static display objects (it can hurt performance if applied to frequently changing content). For frame-by-frame sequences, exporting to a bitmap sequence and using a dedicated encoder will often give smoother results than the Flash-to-QuickTime direct path.

If QuickTime/video export stutters while the SWF itself runs smoothly, try exporting a PNG sequence and encoding with Adobe Media Encoder or ffmpeg to H.264 at a constant frame rate, or test other codecs. Finally, profile (Flash Builder profiler / Adobe Scout or a simple FPS meter) to find hotspots; that data will tell whether to optimize artwork, code, or the export/codec pipeline.

Recommended Answers

All 2 Replies

bump

Member Avatar for Member #334542

your links shows its working fine

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.