Jump to content
Search Community

Only cache asset to GPU during tween?

martis test
Moderator Tag

Warning: Please note

This thread was started before GSAP 3 was released. Some information, especially the syntax, may be out of date for GSAP 3. Please see the GSAP 3 migration guide and release notes for more information about how to update the code to GSAP 3's syntax. 

Recommended Posts

Hey guys,

 

I am building an experience with many images on a page. I am optimizing for browsers that benefit from applying the z:.01 to put it on the GPU.

 

My question is... is there a way to cache an asset on the GPU, then remove it once its done tweening?

 

Example: I start to fade on image0, caches image0 to GPU, fade completes, remove image0 from GPU.

 

(this will have to work with reverse timeline also)

 

Thanks!

Link to comment
Share on other sites

Perfect timing, Martis. Well, almost.

 

We are actually working on a new feature in CSSPlugin for force3d:"auto" which will intelligently switch from using a 3D matrix to 2D when a tween completes.

 

Keep an eye on your emails and our twitter / facebook pages for release info. Hoping it will be out the door in the next 24 hours.

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...