Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. This is Huge! (for me)

This is Huge! (for me)

Scheduled Pinned Locked Moved The Lounge
csharpwpfdesigntutorial
5 Posts 3 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    Lost User
    wrote on last edited by
    #1

    Started looking at incorporating "Storyboards" (WPF/UWP) into my UWP "frame based" app. Didn't know how to accommodate both at the same time originally (different "time lines"), but things are becoming more clear. Just so I didn't paint myself into a corner, I created 400 rectangles to test my conclusions. Then assigned 400 different "story boards" to each rectangle, then started them moving all at the same time. "Smooth as butter" and negligible CPU. (UWP has a separate composition thread that runs "independent" of the UI thread "if" you create "independent" (of layout) timelines / storyboards; which inludes moving and rotating). In other words, I think (raw) UWP and C# make a great games platform.

    "Before entering on an understanding, I have meditated for a long time, and have foreseen what might happen. It is not genius which reveals to me suddenly, secretly, what I have to say or to do in a circumstance unexpected by other people; it is reflection, it is meditation." - Napoleon I

    A Kornfeld Eliyahu PeterK 2 Replies Last reply
    0
    • L Lost User

      Started looking at incorporating "Storyboards" (WPF/UWP) into my UWP "frame based" app. Didn't know how to accommodate both at the same time originally (different "time lines"), but things are becoming more clear. Just so I didn't paint myself into a corner, I created 400 rectangles to test my conclusions. Then assigned 400 different "story boards" to each rectangle, then started them moving all at the same time. "Smooth as butter" and negligible CPU. (UWP has a separate composition thread that runs "independent" of the UI thread "if" you create "independent" (of layout) timelines / storyboards; which inludes moving and rotating). In other words, I think (raw) UWP and C# make a great games platform.

      "Before entering on an understanding, I have meditated for a long time, and have foreseen what might happen. It is not genius which reveals to me suddenly, secretly, what I have to say or to do in a circumstance unexpected by other people; it is reflection, it is meditation." - Napoleon I

      A Offline
      A Offline
      Amarnath S
      wrote on last edited by
      #2

      How about a short article or tip? Would be useful for the rest of us.

      L 1 Reply Last reply
      0
      • L Lost User

        Started looking at incorporating "Storyboards" (WPF/UWP) into my UWP "frame based" app. Didn't know how to accommodate both at the same time originally (different "time lines"), but things are becoming more clear. Just so I didn't paint myself into a corner, I created 400 rectangles to test my conclusions. Then assigned 400 different "story boards" to each rectangle, then started them moving all at the same time. "Smooth as butter" and negligible CPU. (UWP has a separate composition thread that runs "independent" of the UI thread "if" you create "independent" (of layout) timelines / storyboards; which inludes moving and rotating). In other words, I think (raw) UWP and C# make a great games platform.

        "Before entering on an understanding, I have meditated for a long time, and have foreseen what might happen. It is not genius which reveals to me suddenly, secretly, what I have to say or to do in a circumstance unexpected by other people; it is reflection, it is meditation." - Napoleon I

        Kornfeld Eliyahu PeterK Offline
        Kornfeld Eliyahu PeterK Offline
        Kornfeld Eliyahu Peter
        wrote on last edited by
        #3

        MS does promote UWP as a game development UI, but not with C#... C# can be a performance problem if the game is demanding... And of course UWP as a MS only realm...

        "If builders built buildings the way programmers wrote programs, then the first woodpecker that came along would destroy civilization." ― Gerald Weinberg

        "It never ceases to amaze me that a spacecraft launched in 1977 can be fixed remotely from Earth." ― Brian Cox

        L 1 Reply Last reply
        0
        • Kornfeld Eliyahu PeterK Kornfeld Eliyahu Peter

          MS does promote UWP as a game development UI, but not with C#... C# can be a performance problem if the game is demanding... And of course UWP as a MS only realm...

          "If builders built buildings the way programmers wrote programs, then the first woodpecker that came along would destroy civilization." ― Gerald Weinberg

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          UWP compiles to ARM. Runs on XBox. MS is getting more stuff running on Android. Things don't look as bleak as when I was coding in Visual FoxPro. As for performance, my timer based frame rate is 20 FPS, and everything I need to do I am able to do in 50 ms with enough to spare. And this is a "big" demanding app. EV's these days have 1000HP; is one with 600HP a performance problem?

          "Before entering on an understanding, I have meditated for a long time, and have foreseen what might happen. It is not genius which reveals to me suddenly, secretly, what I have to say or to do in a circumstance unexpected by other people; it is reflection, it is meditation." - Napoleon I

          1 Reply Last reply
          0
          • A Amarnath S

            How about a short article or tip? Would be useful for the rest of us.

            L Offline
            L Offline
            Lost User
            wrote on last edited by
            #5

            My search for "help" found very few where I was threading. It seems in its architecture, MS only considers "one time" or "forever" animations. It's a bit of voodoo to get your zombies back. I'd be doing more apologizing than providing helpful advice. We'll have to see how it ends; but it is actually reducing my code base since I was starting to write my own "slaves" (before realizing it). Instead of "threads", I can feel somewhat confident about unleashing a few hundred "storyboards".

            "Before entering on an understanding, I have meditated for a long time, and have foreseen what might happen. It is not genius which reveals to me suddenly, secretly, what I have to say or to do in a circumstance unexpected by other people; it is reflection, it is meditation." - Napoleon I

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups