Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove custom WebGL code from this sim #66

Closed
11 tasks done
jessegreenberg opened this issue Apr 22, 2019 · 10 comments
Closed
11 tasks done

Remove custom WebGL code from this sim #66

jessegreenberg opened this issue Apr 22, 2019 · 10 comments
Assignees

Comments

@jessegreenberg
Copy link
Contributor

jessegreenberg commented Apr 22, 2019

#42 is an investigation about whether we can safely remove WebGL from ESP and keep good performance on PhET's targeted platforms. Should we see a 👍 there (which is likely), these are the immediate things that should be done (with recommendations from @samreid over slack):

@jessegreenberg jessegreenberg self-assigned this Apr 22, 2019
@jessegreenberg
Copy link
Contributor Author

SHA and date before removing WebGL:

commit 48a5a521bdbdcdbcd418bc244cfca708606b77d0 (HEAD -> master, origin/master, origin/HEAD)
Author: Jesse <[email protected]>
Date:   Wed Apr 17 14:28:34 2019 -0400

    use SunConstants.VALUE_NAME_PLACEHOLDER for #63

@jessegreenberg
Copy link
Contributor Author

Combine BarGraphForeground and BarGraphBackground into a single node? (edited)

Lets not do this until we try to use griddle first.

jessegreenberg added a commit that referenced this issue May 22, 2019
@jessegreenberg
Copy link
Contributor Author

Bar graph is done, see #31. Ill work on the pie chart next.

@jessegreenberg
Copy link
Contributor Author

They can just be removed at this point.

@jessegreenberg
Copy link
Contributor Author

jessegreenberg commented May 23, 2019

Remove bottomLayer, webGLLayer, and topLayer nodes.

We still want some layering so that subtypes of EnergySkateParkSCreenView can layer things in front of and beind the skater. I will keep bottomLayer (for control panel UI components) and topLayer (for interactive components that are draggable on top of the rest of the UI).

@jessegreenberg
Copy link
Contributor Author

One remaining comment related to WebGL says:

    // Use a separate texture for left/right skaters to avoid WebGL performance issues when switching textures
    var leftSkaterImageNode = new Image( skaterLeftImage, {
      cursor: 'pointer',
      tandem: tandem.createTandem( 'leftSkaterImageNode' )
    } );
    var rightSkaterImageNode = new Image( skaterRightImage, {
      cursor: 'pointer',
      tandem: tandem.createTandem( 'rightSkaterImageNode' )
    } );

@samreid would you recommend leaving this as is or should we try to do this with a single Image Node? Commit that added this was fcbe3ed, but I couldn't find an issue, do you remember what platform/context had an issue with this?

@jessegreenberg
Copy link
Contributor Author

Otherwise, I think all custom rendering has now been removed.

@jessegreenberg jessegreenberg removed their assignment May 23, 2019
This was referenced May 23, 2019
@samreid
Copy link
Member

samreid commented Sep 9, 2019

We have to use 2 images for the skater, it contains text and cannot be flipped programmatically or "PhET" would come out backwards. I recommend recommenting that part and leaving the code as it is. Thanks!

@samreid samreid assigned jessegreenberg and unassigned samreid Sep 9, 2019
@jessegreenberg
Copy link
Contributor Author

Oh yes I see! Thanks!

@jessegreenberg
Copy link
Contributor Author

Then this issue can be closed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants