Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

c# optimization

Name: C !X9l.ZOI87s 2010-02-07 15:59

Is there any way to make this faster? C# on the Xbox (XNA) - for those that don't know the CPUs are shitty PowerPC cores, and is slowwww.


toDraw = redBulletList.Count;
if (toDraw > 0)
{
    Array.Resize(ref instanceTransforms, toDraw);
    for (int i = 0; (i < toDraw && i < redBulletList.Count); i++)
    {
       instanceTransforms[i] = redBulletList[i].Transform;
    }
    redBulletInstance.DrawInstances(instanceTransforms, _viewMatrix, _projectionMatrix);
}

Name: Anonymous 2010-02-07 16:04

      /\_)o<
     |      \
     | O . O|
      \_____/

Name: Anonymous 2010-02-07 16:06

#pragma omg-optimized

Name: Anonymous 2010-02-07 16:12

#pragma omg-optimized ?

omg everything is running 10000000x faster now!

but really, anybody? ^_^

Name: Anonymous 2010-02-07 16:31

Too bad C# is slow as fuck.

Name: Anonymous 2010-02-07 16:59

yeh, it is :(

Name: Anonymous 2010-02-07 17:01

toDraw = redBulletList.Count;
i < toDraw && i < redBulletList.Count

C# is notoriously slow at boolean AND-ing the same comparison consecutively.

Name: Anonymous 2010-02-07 18:18

I did do that, didn't I? =/

so now i have this:
toDraw = redBulletList.Count;
if (toDraw > 0)
{
    Array.Resize(ref instanceTransforms, toDraw);
    for (int i = 0;i < toDraw; i++)
        instanceTransforms[i] = redBulletList[i].Transform;
    redBulletInstance.DrawInstances(instanceTransforms, _viewMatrix, _projectionMatrix);
}

Name: Anonymous 2010-02-07 18:44

Abandon everything and start working on the PS3.

Name: Anonymous 2010-02-07 19:23

Totally would have made it for the PS3, but average joe can't just go and make games for a PS3, but anybody can run/use XNA.

Name: Anonymous 2010-02-07 22:06

>>1
PowerPC
God, don't remind me. Back when Apple was an incredibly niche company nobody had ever heard of, with a whole eight or nine customers, they kept spreading FUD about how Intel processors were slower (per clock) than their own proprietary PPC shit. They didn't mention the part about how this was a blatant lie, never mind little details like an FSB design that topped out at 133MHz and old-style DRAM, even though the actual CPU clock could go up to 2GHz with overclocking.

Name: Anonymous 2010-02-07 22:14

>>1
PowerPC
God, don't remind me. Back when Apple was an incredibly niche company nobody had ever heard of, with a whole eight or nine customers, they kept spreading FUD about how Intel processors were slower (per clock) than their own proprietary PPC shit. They didn't mention the part about how this was a blatant lie, never mind little details like an FSB design that topped out at 133MHz and old-style DRAM, even though the actual CPU clock could go up to 2GHz with overclocking.

Name: Anonymous 2010-02-07 22:20

>>11
PPC was an IBM chip that they suckered Apple and Motorola into.

Name: Anonymous 2010-02-07 22:24

>>11
PPC was an IBM chip that they suckered Apple and Motorola into.

Name: Anonymous 2010-02-07 22:46

>>11
You said that like any of Apple's marketing claims aren't outright lies.

Name: Anonymous 2010-02-07 22:49

>>11
You said that like any of Apple's marketing claims aren't outright lies.

Name: Anonymous 2010-02-07 23:57

ITT we repeat ourselves!

Name: Anonymous 2010-02-07 23:57

ITT we repeat ourselves!

Name: Anonymous 2010-02-08 0:26

optimization
C# on the Xbox (XNA)

Start here.

Name: Anonymous 2010-02-08 4:04

optimization
[b]C# on the Xbox (XNA)
Start here.

Name: Anonymous 2010-02-08 4:18

>>20
Oops.

Name: Anonymous 2010-02-08 4:23

>>20
Oops.

Name: Anonymous 2010-02-09 19:50

This will not be repeated.

Name: Anonymous 2010-02-09 19:51

>>23
Combo-breaker.

Name: Anonymous 2010-02-09 20:09

>>23
This will not be....FUCK

Name: Anonymous 2010-02-09 20:58

This will not be repeated.

Name: Anonymous 2010-02-09 20:59

>>26
Combo-breaker.

Name: Anonymous 2010-02-09 20:59

>>26
This will not be....FUCK

Name: Anonymous 2010-02-09 22:26

XNA does not like code place inside of it's draw routine. You do everything you can in the update portion so you can have a smooth draw routine.

Name: Anonymous 2010-02-10 1:19

XNA does not like code place inside of it's draw routine. You do everything you can in the update portion so you can have a smooth draw routine.

Name: Anonymous 2010-02-10 2:07

>>10
PS3's hypervisor was cracked recently.

Name: Anonymous 2010-02-10 2:07

>>10
PS3's hypervisor was cracked recently.

Name: Anonymous 2010-02-10 2:08

Guys stop this repeating shit, it's childish and annoying.

Name: Anonymous 2010-02-10 2:08

Guys stop this repeating shit, it's childish and annoying.

Name: Anonymous 2010-02-10 2:36

Guys stop this repeating shit, it's childish and annoying.

Name: Anonymous 2010-02-10 8:29

>>31
Manually gitching a memory bus via an attached FPGA is not exactly what I would call "cracked".

Name: Anonymous 2010-02-10 14:39

>>36
What would you called, Ensign expert hacker

Name: Anonymous 2010-11-13 23:19

Name: Anonymous 2010-12-17 1:19

Are you GAY?
Are you a NIGGER?
Are you a GAY NIGGER?

If you answered "Yes" to all of the above questions, then GNAA (GAY NIGGER ASSOCIATION OF AMERICA) might be exactly what you've been looking for!

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List