RE: [GD-Windows] C# scripting
Brought to you by:
vexxed72
From: Paul B. <pa...@mi...> - 2004-05-20 17:04:41
|
FP math doesn't seem to be optimized in many scripting languages either. I suspect most people who are interested in scripting languages are acknowledging some amount of performance bleed. For those that are interested, there is an article that benchmarks numerical computing performance of the CLR using C# at http://msdn.microsoft.com/msdnmag/issues/04/03/ScientificC/=20 The performance isn't ideal but I suspect it is better than most scripting languages and should continue to improve. SciMark scores for various Java implementations: http://math.nist.gov/cgi-bin/ScimarkSummary Another paper talking about HPC and .NET & Java. http://www.sc-conference.org/sc2003/paperpdfs/pap251.pdf On the subject of JIT vs static-native, there is a paper on Marmot at http://research.microsoft.com/act/marmot.pdf. One could suspect these techniques could be applied to .NET=20 languages as well. It would be nice if there were more effective benchmarks for C# performance in the games domain but I am not sure what those would be. Paul > -----Original Message----- > From: gam...@li...=20 > [mailto:gam...@li...] On=20 > Behalf Of Jon Watte > Sent: Thursday, May 20, 2004 11:41 AM > To: gam...@li... > Subject: RE: [GD-Windows] C# scripting >=20 >=20 > The current CLR doesn't appear to optimize floating-point math much > at all, so no matter what the languate, it's unlikely to be=20 > well suitable > for most 3D gaming applications. >=20 > Cheers, >=20 > / h+ >=20 >=20 > -----Original Message----- > From: gam...@li... > [mailto:gam...@li...]On Behalf Of > Brett Bibby > Sent: Wednesday, May 19, 2004 6:58 PM > To: gam...@li... > Subject: Re: [GD-Windows] C# scripting >=20 >=20 > I should clarify my question as I don't think I was clear. >=20 > It seems that JScript combined with JIT is an efficient=20 > solution. A fast > scripting language like Lua outperforms a traditional Javascript > implementation enough that it is worthwhile to use Lua for=20 > our intended use > in a realtime game. So I'm wondering if anybody could=20 > comment how C# using > JScript might stack up against a C++ app with embedded Lua in=20 > terms of raw > performance (Or any other language/script combo, my point=20 > being to benchmark > between native code and "managed" code). >=20 > Hmm... maybe I made it even more unclear? :-) >=20 >=20 > ----- Original Message ----- > From: "Brett Bibby" <res...@ga...> > To: <gam...@li...> > Sent: Thursday, May 20, 2004 8:52 AM > Subject: Re: [GD-Windows] C# scripting >=20 >=20 > > Tom, is there a better list than this one to discuss the=20 > use of C# in game > development? > > > > Meanwhile.... > > > > I know that C# can already support JScript out of the box,=20 > but coming from > our current PlayStation2 engine that uses Lua, it must be a=20 > magnitude slower > to use JScript inside a JIT environment isn't it? Would you recommend > developers to implement their own scripting solutions? > > > > Brett > > > > ----- Original Message ----- > > From: "Tom Miller" <tm...@wi...> > > To: <gam...@li...> > > Sent: Thursday, May 20, 2004 2:36 AM > > Subject: RE: [GD-Windows] C# scripting > > > > > > > The upcoming update for the DirectX SDK includes a sample=20 > showing this > > > exact functionality. > > > > > > -----Original Message----- > > > From: gam...@li... > > > [mailto:gam...@li...]=20 > On Behalf Of > > > Mitch Walker > > > Sent: Wednesday, May 19, 2004 9:48 AM > > > To: gam...@li... > > > Subject: RE: [GD-Windows] C# scripting > > > > > > You can also use the CLR to host code. You create a new=20 > AppDomain and > > > run the code inside of this. You can apply permissions to this > > > AppDomain, so, for example, the code inside it has "ExecuteOnly" > > > permissions (Can't do IO, Sockets, etc). There are=20 > compiler APIs as > > > well so you can compile the code that you want to host on=20 > the fly. This > > > would allow you to keep all of your scripts in file=20 > format, compile them > > > on start up and possibly detect changes and reload when=20 > applicable. If > > > you are writing managed code and need scripting type=20 > functionality, I > > > would definitely take a look at this option. > > > > > > -Mitch > > > > > > -----Original Message----- > > > From: gam...@li... > > > [mailto:gam...@li...]=20 > On Behalf Of > > > Lewin, Gareth > > > Sent: Wednesday, May 19, 2004 9:27 AM > > > To: gam...@li... > > > Subject: RE: [GD-Windows] C# scripting > > > > > > Well, C# supports the microsoft scripting host stuff out=20 > of the box > > > AFAIK, so Javascript, VBScript etc should 'just work' > > > > > > _________________________________________ > > > Gareth Lewin - http://www.garethlewin.com > > > > > > "Facts are useless. You can use facts to prove anything=20 > that's even > > > remotely true. Facts shmacts!" -- Homer Jay Simpson. > > > > > > -----Original Message----- > > > From: Brett Bibby [mailto:res...@ga...] > > > Sent: Tuesday, May 18, 2004 11:47 PM > > > To: Gam...@li... > > > Subject: [GD-Windows] C# scripting > > > > > > > > > Howdy. Does anybody know if there are any scripting=20 > languages that > > > directly support embedding into C#? At this point speed is not a > > > requirement, just doing some research. I know I can glue=20 > something like > > > Lua into it, but since it's unmanaged code it would be=20 > ugly. Thanks, > > > Brett > > > > > > > > > ------------------------------------------------------- > > > This SF.Net email is sponsored by: SourceForge.net=20 > Broadband Sign-up now > > > for SourceForge Broadband and get the fastest 6.0/768=20 > connection for > > > only $19.95/mo for the first 3 months! > > > http://ads.osdn.com/?ad_id%62&alloc_ida84&op=3Dick > > > _______________________________________________ > > > Gamedevlists-windows mailing list > > > Gam...@li... > > > https://lists.sourceforge.net/lists/listinfo/gamedevlists-windows > > > Archives: http://sourceforge.net/mailarchive/forum.php?forum_idU5 > > > > > > > > > > > > ------------------------------------------------------- > > > This SF.Net email is sponsored by: SourceForge.net Broadband > > > Sign-up now for SourceForge Broadband and get the fastest > > > 6.0/768 connection for only $19.95/mo for the first 3 months! > > > http://ads.osdn.com/?ad_id%62&alloc_ida84&op=3Dick > > > _______________________________________________ > > > Gamedevlists-windows mailing list > > > Gam...@li... > > > https://lists.sourceforge.net/lists/listinfo/gamedevlists-windows > > > Archives: > > > http://sourceforge.net/mailarchive/forum.php?forum_idU5 > > > > > > > > > ------------------------------------------------------- > > > This SF.Net email is sponsored by: SourceForge.net Broadband > > > Sign-up now for SourceForge Broadband and get the fastest > > > 6.0/768 connection for only $19.95/mo for the first 3 months! > > > http://ads.osdn.com/?ad_id%62&alloc_ida84&op=3Dick > > > _______________________________________________ > > > Gamedevlists-windows mailing list > > > Gam...@li... > > > https://lists.sourceforge.net/lists/listinfo/gamedevlists-windows > > > Archives: > > > http://sourceforge.net/mailarchive/forum.php?forum_idU5 > > > > > > > > > ------------------------------------------------------- > > > This SF.Net email is sponsored by: SourceForge.net Broadband > > > Sign-up now for SourceForge Broadband and get the fastest > > > 6.0/768 connection for only $19.95/mo for the first 3 months! > > > http://ads.osdn.com/?ad_id%62&alloc_ida84&op=CCk > > > _______________________________________________ > > > Gamedevlists-windows mailing list > > > Gam...@li... > > > https://lists.sourceforge.net/lists/listinfo/gamedevlists-windows > > > Archives: > > > http://sourceforge.net/mailarchive/forum.php?forum_idU5 > > > > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by: Oracle 10g > > Get certified on the hottest thing ever to hit the=20 > market... Oracle 10g. > > Take an Oracle 10g class now, and we'll give you the exam FREE. > > http://ads.osdn.com/?ad_id149&alloc_id=8166&op=CCk > > _______________________________________________ > > Gamedevlists-windows mailing list > > Gam...@li... > > https://lists.sourceforge.net/lists/listinfo/gamedevlists-windows > > Archives: > > http://sourceforge.net/mailarchive/forum.php?forum_idU5 > > >=20 >=20 > ------------------------------------------------------- > This SF.Net email is sponsored by: Oracle 10g > Get certified on the hottest thing ever to hit the market...=20 > Oracle 10g. > Take an Oracle 10g class now, and we'll give you the exam FREE. > http://ads.osdn.com/?ad_id149&alloc_id=8166&op=3Dick > _______________________________________________ > Gamedevlists-windows mailing list > Gam...@li... > https://lists.sourceforge.net/lists/listinfo/gamedevlists-windows > Archives: > http://sourceforge.net/mailarchive/forum.php?forum_idU5 >=20 >=20 >=20 > ------------------------------------------------------- > This SF.Net email is sponsored by: Oracle 10g > Get certified on the hottest thing ever to hit the market...=20 > Oracle 10g.=20 > Take an Oracle 10g class now, and we'll give you the exam FREE. > http://ads.osdn.com/?ad_id=3D3149&alloc_id=3D8166&op=3Dclick > _______________________________________________ > Gamedevlists-windows mailing list > Gam...@li... > https://lists.sourceforge.net/lists/listinfo/gamedevlists-windows > Archives: > http://sourceforge.net/mailarchive/forum.php?forum_id=3D555 >=20 |