HSP¥Ý¡¼¥¿¥ë
¥µ¥¤¥È¥Þ¥Ã¥× ¤ªÌ䤤¹ç¤ï¤»


HSPTV!·Ç¼¨ÈÄ


̤²ò·è ²ò·è Ää»ß ºï½üÍ×ÀÁ

2011
0114
SU-­·²èÌ̹¹¿·¤ËŬ¤·¤¿awaitÌ¿Îá¤Î¥Ñ¥é¥á¡¼¥¿¡¼¤Ë¤Ä¤¤¤Æ¶µ¤¨¤Æ¤¯¤À¤µ¤¤13²ò·è


SU-­·

¥ê¥ó¥¯

2011/1/14(Fri) 17:28:56|NO.36603

¸½ºß¥·¥å¡¼¥Æ¥£¥ó¥°¥²¡¼¥à¤òÀ©ºî¤·¤Æ¤¤¤Þ¤¹¡£

¸½ºß¥á¥¤¥ó¥ë¡¼¥×¤Î±é»»¤ÎÉÑÅÙ¤ò
await 1
¤È¤·¤Æ¤¤¤ë¤Î¤Ç¤¹¤¬¡¢¼ÂºÝ¤Ë¥Ñ¥½¥³¥ó¤Ï°ìÉô֤ˣ¶£°²ó¤Î²èÌ̹¹¿·¤ò¹Ô¤Ã¤Æ¤¤¤ë¤Î¤Ç
̵Â̤ʱ黻¤ò¤µ¤»¤Æ¤·¤Þ¤¤¡¢Éé²Ù¤ò¤«¤±¤Æ¤¤¤ë¤­¤¬¤·¤Þ¤¹¡£

¤½¤³¤Ç²èÌ̤ι¹¿·¤Ë¹ç¤ï¤»¤Æ±é»»¤ò¤µ¤»¤¿¤¤¤È»×¤¦¤Î¤Ç¤¹¤¬¡¢
16.xxx
¤È³ä¤êÀÚ¤ì¤Ê¤¤¤Î¤ÇŬ¤·¤¿¿ôÃͤ¬¤ï¤«¤ê¤Þ¤»¤ó
²èÌ̤ι¹¿·¤Ë¤¢¤Ã¤¿await ¤Î¥Ñ¥é¥á¡¼¥¿¤Ï¤É¤Î¤è¤¦¤ËÀßÄꤷ¤¿¤é¤è¤¤¤Î¤Ç¤·¤ç¤¦¤«

¤â¤·ÃΤäƤ¤¤ëÊý¤¬¤¤¤é¤Ã¤·¤ã¤ì¤Ð¶µ¤¨¤Æ¤¯¤À¤µ¤¤
¤è¤í¤·¤¯¤ª´ê¤¤¤·¤Þ¤¹



¤³¤Îµ­»ö¤ËÊÖ¿®¤¹¤ë


takaya

¥ê¥ó¥¯

2011/1/14(Fri) 18:15:30|NO.36604

¤³¤ì¤Ï£±Éô֤ˣ¶£°²ó¥ë¡¼¥×¤·¤¿¤¤¤È¤¤¤¦¤³¤È¤«¤Ê¡©
(16.xxx¤è¤ê)
¤È¤Ê¤ë¤È¼Â¿ôÃͤÏÀßÄê¤Ç¤­¤Ê¤¤¤Î¤Ç
£±£¶¤Ç²æËý¤¹¤ë¤«
E3D¤ÇºîÀ®¤¹¤ë¤«
(fps ¤ò 60 ¤Ç»ØÄê)



GENKI

¥ê¥ó¥¯

2011/1/15(Sat) 01:19:38|NO.36607

¤¦¡¼¤ó¡¢Â¿Ê¬¥ê¥Õ¥ì¥Ã¥·¥å¥ì¡¼¥È¤Î¤³¤È¤ò¸À¤Ã¤Æ¤¤¤ë¤Î¤À¤È»×¤¤¤Þ¤¹¡£
¥â¥Ë¥¿¤Î¥ê¥Õ¥ì¥Ã¥·¥å¥ì¡¼¥È°Ê¾å¤ÎfpsÃͤDzèÌ̤ò¹¹¿·¤·¤Æ¤â°ÕÌ£¤¬Ìµ¤¤¤ó¤¸¤ã¤Ê¤¤¤«¡©
¤È¤¤¤¦¤³¤È¤ò¸À¤¤¤¿¤¤¤Î¤À¤È»×¤¤¤Þ¤¹¡£

³Î¤«¤Ë¤½¤¦¤Ç¤¹¤Í¡£¥²¡¼¥à¤Î¾ì¹ç¡¢ÉÁ²è¥µ¥¤¥¯¥ë(fpsÃÍ)¤Ï60fps¤«30fps¤«¤Çºî¤é¤ì¤ë¤Î¤¬¤À¤¤¤¿¤¤ÉáÄ̤ߤ¿¤¤¤Ç¤¹¡£
¤·¤«¤·¡¢fpsÃͤò60¤ä30¤Ë¤¹¤ë¤Î¤Ï¾¤Ë¤âÍýͳ¤¬¤¢¤ê¤Þ¤¹¡£
¡¦cpuÉé²Ù¤â·Ú¸º¤Ç¤­¤Þ¤¹¡£
¡¦fpsÃͤ¬°ÂÄꤷ¤Þ¤¹¡£

await 0¤ä1¤ÇCPU¤Þ¤«¤»¤Ë¹â®¤Ë²èÌ̤ò¹¹¿·¤·¤Á¤ã¤¦¤ÈfpsÃͤ¬°ÂÄꤻ¤º¡¢Æ±¤¸Æ°ºî¤Ç¤âCPU¤Î¾õÂ֤ǥ­¥ã¥é¥¯¥¿¡¼¤¬¶Ëü¤Ë¤æ¤Ã¤¯¤êÆ°¤¤¤¿¤ê¤¹¤Ð¤ä¤¯Æ°¤¤¤¿¤ê¤·¤Æ¤·¤Þ¤¤¤Þ¤¹¡£¤³¤ì¤Ï¥²¡¼¥à¤Ç¤ÏÃ×̿Ū¤Ê·ç´Ù¤Ë¤Ê¤Ã¤Æ¤·¤Þ¤¤¤Þ¤¹¡£
¤È¤¤¤¦¤³¤È¤Ç¡¢¤¿¤¤¤Æ¤¤¤Î¿Í¤Ï¥²¡¼¥à¤òºî¤ë¤È¤­¡¢await¤ÇŬÅÙ¤ÊÂÔµ¡¤ò¤·¤ÆfpsÃͤò°ÂÄꤵ¤»¤Þ¤¹¡£»þ´Ö¤Ïawait 16Á°¸å¤«30Á°¸å¤Çºî¤Ã¤Æ¤¤¤ë¤È»×¤¤¤Þ¤¹¡£


> ²èÌ̤ι¹¿·¤Ë¤¢¤Ã¤¿await ¤Î¥Ñ¥é¥á¡¼¥¿¤Ï¤É¤Î¤è¤¦¤ËÀßÄꤷ¤¿¤é¤è¤¤¤Î¤Ç¤·¤ç¤¦¤«

¼Â¤ò¸À¤¦¤ÈawaitÌ¿Îá¤Ï¤µ¤Û¤ÉÀºÅÙ¤¬¹â¤¤¤ï¤±¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó¡£¡Ê¾Ü¤·¤¯¤Ïawait¤È¤«¤Ç²áµî¥í¥°Ãµ¤¹¤È²¿¤«½Ð¤Æ¤¯¤ë¤È»×¤¤¤Þ¤¹¡£¡Ë
¤È¤¤¤¦¤³¤È¤Ç¡¢¤³¤Î¥¹¥¯¥ê¥×¥È¤ò»î¤·¤Æ¤ß¤Æ¤¯¤À¤µ¤¤¡£

#include "d3m.hsp" t = 10 *main redraw 1 : await t : redraw 0 : color 255, 255, 255 : boxf : color : pos 0,0 stick key if key&2 : t++ ;¢¬ if key&8 : t-- ;¢­ t=limit(t,0,100) mes "await " + t mes ""+d3getfps() + " fps" goto *main
¢¬¢­¥­¡¼¤ò²¡¤¹¤Èawait¤Î¥Ñ¥é¥á¡¼¥¿¤¬ÊѤï¤ê¤Þ¤¹¡£

await¤Î¥Ñ¥é¥á¡¼¥¿¤ò£±¤º¤ÄÊѤ¨¤Æ¤âfpsÃͤ¬¥¹¥Æ¥Ã¥×¾õ¤ËÊѲ½¤·¤Æ¤¤¤¯¤³¤È¤¬³Îǧ¤Ç¤­¤ë¤È»×¤¤¤Þ¤¹¡£



¤ó¡©¤¢¤ì¡Ä16¤À¤È40fps¤Ë¤Ê¤Ã¤¿¡Ä¤À¤È¡£
¤¤¤Þ¤Þ¤Ç³Îǧ¤»¤º¤Ë17¤È¤«16¤Çºî¤Ã¤Æ¤¿¡Ä¡£orz



GENKI

¥ê¥ó¥¯

2011/1/15(Sat) 02:30:59|NO.36608

µ¤¤Ë¤Ê¤Ã¤¿¤Î¤Çawait¤ÈfpsÃͤδط¸¤òÄ´ºº¤·¤Æ¤ß¤Þ¤·¤¿¡£
http://homepage3.nifty.com/ghpk/tmp/await_fps.png
·ë²Ì¤Ï¤³¤Î¿Þ¤Î¤è¤¦¤Ë¡¢690,64,32,21,16,13,11,9...¤È¥¹¥Æ¥Ã¥×¾õ¤Ë¿ä°Ü¤·¤Þ¤·¤¿¡£

¥®¥ê¥®¥ê¤Î15¤È¤«30»È¤¦¤è¤ê¿¿¤óÃæ¤Î8¤È¤«25¤°¤é¤¤¤Î¤Û¤¦¤¬fpsÃͤ¬°ÂÄꤷ¤½¤¦¤Êµ¤¤¬¤·¤Þ¤¹¤Í¡£

¤·¤«¤·¤³¤Î¥°¥é¥Õ¡¢´Ä¶­¤Ë°Í¸¤¹¤ë¤ó¤Ç¤·¤ç¤¦¤«¡£
¥Æ¥¹¥È´Ä¶­
OS:Vista 32bit
CPU:Core2Duo 3.0GHz



ANTARES

¥ê¥ó¥¯

2011/1/15(Sat) 05:24:04|NO.36609

¡¡16,17,32,33¤ÏÉÔ°ÂÄê¤Ê¤è¤¦¤Ç¤¹

CPU:Core2 Duo E7500 2.93GHz
OS:XP 32bit


#include "d3m.hsp" #uselib "user32.dll" #func SetTimer "SetTimer" int,int,int,nullptr #func KillTimer "KillTimer" int,int #define WM_TIMER 0x0113 start=8 ;await vend=40 ;await interval=1 ;1¥¹¥Æ¥Ã¥×¤Î·×¬»þ´Ö¡ÊÉÃ¡Ë musi=2 ;ÀèƬ£²¹Ô¤Ï¿®ÍѤǤ­¤Ê¤¤ if start>=musi: start-=musi ndim=vend-start+1 dim anum,ndim dim aval,ndim ddim aver,ndim dim amin,ndim dim amax,ndim t=start i=0 screen 0,640,640,,0,0 font msgothic,16 objmode 2 title ""+interval+"ÉäªÂÔ¤Á¤¯¤À¤µ¤¤" onexit goto *l_exit oncmd gosub *l_ontimer,WM_TIMER timerID = 1 timeoutValue=interval*1000 gosub *l_setTimer *main redraw 1 : await t : redraw 0 : color 255, 255, 255 : boxf : color : pos 0,0 fps=d3getfps() if fps>0 { sum+=fps num++ if fps<min: min=fps if fps>max: max=fps } goto *main *l_ontimer KillTimer hwnd,timerID anum.i=num aval.i=t aver.i=double(sum)/num amin.i=min amax.i=max title "i="+i+" t="+t+" sum="+sum+" num="+num+" ave="+aver.i+" min="+min+" max="+max i++ t++ if t<=vend { gosub *l_setTimer goto *main } s="await ²ó¿ô Ê¿¶Ñ ºÇ¾® ºÇÂç\n" repeat ndim-musi,musi s+=strf(" %3d %3d %4.1f %3d %3d\n",aval.cnt,anum.cnt,aver.cnt,amin.cnt,amax.cnt) loop mesbox s,640,640 stop *l_setTimer num=0 sum=0 min=1000 max=0 SetTimer hwnd,timerID,timeoutValue timerID = stat return *l_exit KillTimer hwnd,timerID end await ²ó¿ô Ê¿¶Ñ ºÇ¾® ºÇÂç 8 65 63.7 63 64 9 63 64.0 64 64 10 65 64.3 64 65 11 63 64.1 63 65 12 65 63.9 63 65 13 64 63.8 63 65 14 63 63.7 63 65 15 63 63.3 63 64 16 40 54.0 42 63 17 32 36.9 32 42 18 32 32.0 32 32 19 32 32.0 32 32 20 32 32.0 32 32 21 32 31.8 31 32 22 32 32.2 32 33 23 32 32.0 32 32 24 32 32.0 32 32 25 32 32.0 32 32 26 32 31.8 31 32 27 32 32.0 32 32 28 32 32.0 32 32 29 32 32.0 32 32 30 32 32.2 32 33 31 32 32.0 32 32 32 24 28.4 24 32 33 21 23.0 22 24 34 22 21.3 21 22 35 21 21.2 21 22 36 21 21.5 21 22 37 22 21.2 21 22 38 21 21.2 21 22 39 21 21.4 21 22 40 22 21.3 21 22



ANTARES

¥ê¥ó¥¯

2011/1/15(Sat) 05:47:47|NO.36610

¡¡£³²ó¤ä¤Ã¤Æ¤ß¤Þ¤·¤¿¤¬¡¢£³²ó¤È¤â16¤Î¤È¤­¤Î²ó¿ô¤Ï40¤À¤Ã¤¿¤Î¤Ç¡¢
ÉÔ°ÂÄê¤Ê¤Î¤Ïawait¤Ç¤Ï¤Ê¤¯d3getfps¤Î¤è¤¦¤Ç¤¹¡£



skyblue

¥ê¥ó¥¯

2011/1/15(Sat) 12:33:10|NO.36611

>ÉÔ°ÂÄê¤Ê¤Î¤Ïawait¤Ç¤Ï¤Ê¤¯d3getfps¤Î¤è¤¦¤Ç¤¹¡£
¤³¤Á¤é¤Î´Ä¶­¤Ç¤âƱ¤¸¤¯d3getfps¤Î¤Û¤¦¤¬ÉÔ°ÂÄê



hexa.hemi

¥ê¥ó¥¯

2011/1/15(Sat) 13:49:41|NO.36613

d3getfps¤Î¤«¤ï¤ê¤ÎFPS·×¬¥â¥¸¥å¡¼¥ë¤ÈÀºÅÙ¤¬¤è¤¯¤Ê¤Ã¤Æ¤¤¤ë¤«¤â¤·¤ì¤Ê¤¤awaitÌ¿Îá

#module #uselib "winmm.dll" #cfunc timeGetTime "timeGetTime" #defcfunc getFPS time = timeGetTime() - ntime if time >= keisoku { fps = strf("%.2f", drawcnt) ntime = timeGetTime() drawcnt = 0.0 }else : drawcnt += ( 1000.0 / keisoku ) return fps; + " - " + ( keisoku - time ) #deffunc setFPSTime int _keisoku keisoku = _keisoku ntime = timeGetTime() fps = "**.**" return #deffunc awaitt int atime if busy = 0 { busy = 1 repeat wait 0 if timeGetTime() - mtime >= atime : break loop mtime = timeGetTime() busy = 0 } return #deffunc setAwait mtime = timeGetTime() return #global setAwait t = 10 FPSTime = 1000 setFPSTime FPSTime ax = 1 objsize 100, 20 FPSS = 50, 100, 500, 1000, 2500, 5000 foreach FPSS pos cnt * 100, 140 button gosub "ÉÑÅÙ¤ò" + FPSS(cnt) + "¤ËÊѹ¹", *set_FPS wait 0 loop awts = 5, 10, 12, 16, 20, 24 foreach awts pos cnt * 100, 160 button gosub "await¤ò" + awts(cnt) + "¤ËÊѹ¹", *set_awt wait 0 loop msg = "ɸ½àÌ¿Îá", "¿·µ¬Ì¿Îá" *main stick k, 1 + 4 if k & 1 : FPSTime-- : setFPSTime FPSTime if k & 2 : t++ if k & 4 : FPSTime++ : setFPSTime FPSTime if k & 8 : t-- if k & 32 : awtm ^= 1 if t < 0 : t = 0 if FPSTime < 50 : FPSTime = 50 : setFPSTime FPSTime redraw 0 color 255, 255, 255 boxf color 0, 0, 0 pos 0, 0 mes "¸½ºß¤Îawait¤Î»þ´Ö¡§" + t mes "¸½ºß¤ÎFPS¡§" + getFPS() mes "[" + FPSTime + "]¥ß¥êÉ䴤ȤËFPS¤ò¹¹¿·" mes "º¸±¦¤ÎÌð°õ¥­¡¼¤ÇFPS¤Î¹¹¿·ÉÑÅÙÊѹ¹" mes "¾å²¼¤ÎÌð°õ¥­¡¼¤Çawait¤Î»þ´Ö¤òÊѹ¹" mes "Enter¥­¡¼¤ÇawaitÌ¿Îá¤ÎÀÚ¤êÂؤ¨" mes "await¤Ï" + msg(awtm) + "¤ÎÊý¤Ç¤¹¡£" circle x, 200, x + 20, 220// Èæ³ÓÍÑ¤Ë x += ax if x > ginfo(12) - 20 : ax = -abs(ax) if x < 0 : ax = abs(ax) redraw 1 if awtm = 0 : await t : else : awaitt t goto *main *set_FPS FPSTime = FPSS(stat) setFPSTime FPSTime return *set_awt t = awts(stat - length(FPSS)) return



ÀèÇÚ

¥ê¥ó¥¯

2011/1/15(Sat) 20:20:21|NO.36620

¤É¤Ê¤¿¤â¤³¤Ê¤¿¤â¤½¤¦¤¤¤¦¤¢¤ê¤­¤¿¤ê¤Ê¤³¤È¤Ð¤«¤ê¡£
¼ÁÌä¤ò¤è¡¼¤¯ÆɤßÊÖ¤·¤Þ¤·¤ç¤¦¡£FPS¤Î¤³¤È¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó¡£

>¼ÂºÝ¤Ë¥Ñ¥½¥³¥ó¤Ï°ìÉô֤ˣ¶£°²ó¤Î²èÌ̹¹¿·¤ò¹Ô¤Ã¤Æ¤¤¤ë
¤³¤Î¤è¤¦¤Ë¼ÁÌä¼Ô¤ÏÃǸÀ¤·¤Æ¤¤¤ë¡£¤³¤ì¤Ï¤³¤ÎÌäÂê¤Î¡Ö¾ò·ï¡×¤Ç¤¢¤ë¡£

>̵Â̤ʱ黻¤ò¤µ¤»¤Æ¤·¤Þ¤¤¡¢Éé²Ù¤ò¤«¤±¤Æ¤¤¤ë¤­¤¬¤·¤Þ¤¹¡£
²èÌ̤¬¹¹¿·¤µ¤ì¤Æ¤¤¤Ê¤¤´Ö¤Ë²¿ÅÙ¤â±é»»¤¹¤ë¤Î¤Ï̵Â̤ÇÉéô¤ò¤«¤±¤Æ¤¤¤ëµ¤¤¬¤¹¤ë¡£

>¤½¤³¤Ç²èÌ̤ι¹¿·¤Ë¹ç¤ï¤»¤Æ±é»»¤ò¤µ¤»¤¿¤¤¤È»×¤¦
²èÌ̤ι¹¿·¤Ë¹ç¤ï¤»¤Æ±é»»¤ò¤µ¤»¤¿¤¤¡£


Íפ¹¤ë¤Ë¥â¥Ë¥¿¡¼¤¬£¶£°²ó/Éù¹¿·¤µ¤ì¤ë¤Î¤Ë¹ç¤ï¤»¤Æ£¶£°²ó/Éñ黻¤·¤¿¤¤¤ï¤±¤¸¤ã¤Ê¤¤¡£
¤É¤Î¤è¤¦¤Ë¤·¤Æ¥Ñ¥½¥³¥ó¤¬£¶£°²ó/Éù¹¿·¤·¤Æ¤¤¤ë¤Î¤«Ä´¤Ù¤¿¤Î¤«µ¤¤Ë¤Ê¤ë¤È¤³¤í¤À¤¬¡¢¼ÁÌä¼Ô¤Ï

£¶£°²ó/ÉäΥâ¥Ë¥¿¡¼¹¹¿·¤Ë¹ç¤ï¤»¤Æ¹¹¿·¤ÎľÁ°¤Ë¥×¥í¥°¥é¥à¤¬½ô±é»»¤ò½ª¤¨¤ì¤Ð°ìÀÚ¤Î̵Â̤¬¤Ê¤¯¸úΨ¤¬¾å¤¬¤êÉéô¤â¸º¤ë¤À¤í¤¦

¤È¤¤¤¦¹Í¤¨¤Ê¤Î¤À¡£


·ëÏÀ¤«¤é¸À¤¦¤È¡¢¥×¥í¥°¥é¥àÆâ¤ÎÁ´±é»»¤¬1/60Éäǽª¤¨¤ë¥×¥í¥°¥é¥à¤Ç¤¢¤ì¤Ð²Äǽ¤«¤â¤·¤ì¤Ê¤¤¤¬
¥â¥Ë¥¿¡¼¤ÎÉÁ²è¤ÈƱ´ü¤µ¤»¤Æ¥×¥í¥°¥é¥ß¥ó¥°¤¹¤ë¤È¤¤¤¦¤Î¤Ï¤Ò¤É¤¯¥Ê¥ó¥»¥ó¥¹¤À¤È»×¤ï¤ì¤ë¡£
¤½¤·¤Æawait¤Ï¤½¤Î¤è¤¦¤Ê¥â¥Ë¥¿¡¼¤ÎÉÁ²è¤ÈƱ´ü¤µ¤»¤ë¤¿¤á¤Ë¥×¥í¥°¥é¥à¤Î¼Â¹Ô¤ò¡ÖÂԤġ×ÌÜŪ¤Î¤¿¤á¤Ë»È¤¦Ì¿Îá¤Ç¤Ï¤Ê¤¤¡£



GENKI

¥ê¥ó¥¯

2011/1/15(Sat) 22:55:40|NO.36623

¤ß¤Ê¤µ¤óÆ°ºîÊó¹ð¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹¡£
¤Þ¤È¤á¤ë¤È¤³¤ó¤Ê´¶¤¸¤«¤Ê¡£
¡¦fps¤Ï¥¹¥Æ¥Ã¥×¾õ¤ËÊѲ½¤¹¤ë¡£
¡¦16¡¢32msÁ°¸åÉÕ¶á¤ÇfpsÃͤ¬Â礭¤¯ÊѲ½¤¹¤ë¡£´Ä¶­¤Ë¤è¤ë°ã¤¤¤Ï¤¢¤Þ¤ê¤Ê¤¤¡£
¡¦fps¤¬Â礭¤¯ÊѲ½¤¹¤ëÂÔ¤Á»þ´ÖÉÕ¶á¤ÏfpsÃͤ¬°ÂÄꤷ¤Ê¤¤¡£

await¤Ç¤Ï16¤ä32ÉÕ¶á¤Ï»È¤ï¤Ê¤¤¤Û¤¦¤¬¤è¤µ¤½¤¦¤Ç¤¹¤Í¡£

>>NO.36609
¸¡¾Ú¥×¥í¥°¥é¥à¤É¤¦¤â¤Ç¤¹¡£¤Ç¤âÂÔ¤Á»þ´ÖÊѹ¹¤·¤Æ¤«¤é¤¹¤°¤Ë·×¬³«»Ï¤·¤Æ¤ë¤è¤¦¤Êµ¤¤¬¡Ä¡£
d3getfps¤Ï²áµî1secʬ¤Î¥Õ¥ì¡¼¥à¿ô¤ò¥«¥¦¥ó¥È¤·¤Æɽ¼¨¤·¤Æ¤ë¤Î¤Ç¡¢ÂÔ¤Á»þ´ÖÊѤ¨¤Æ¤«¤éfpsÃͤÎɽ¼¨¤¬°ÂÄꤹ¤ë¤Þ¤Ç1É䫤«¤ë»ÅÍͤǤ¹¡£
ºÇÂçÃͤ¬Â礭¤¤¤Î¤Ï°ÂÄꤹ¤ëÁ°¤ÎÃͤÀ¤«¤é¤Î¤è¤¦¤Ç¤¹¡£

ÉÔ°ÂÄê¤È¤¤¤¨¤Ð¡¢await 16°Ê²¼¤ÇE3DGetFPS¤ò»È¤¦¤È¿ô¥Õ¥ì¡¼¥à¤ª¤­¤Ë500fps¤È¤«¼èÆÀ¤·¤Æ¤­¤Þ¤¹¡££÷



>> ÀèÇÚ¤µ¤ó
Åê¹Æ»þ¤Ëºï½üÍѥѥ¹¥ï¡¼¥É¤òÀßÄꤷ¤Æ¤ª¤±¤Ð¡¢¼«Ê¬¤Î¥ì¥¹¤Ïºï½ü¤¬¤Ç¤­¤Þ¤¹¤è¡£



SU-­·¤µ¤ó¤´¤á¤ó¤Ê¤µ¤¤¡£¥¹¥ì¤Î¼ñ»Ý¤¬¤½¤ì¤Æ¤·¤Þ¤¤¤Þ¤·¤¿¤Í¡£
ÏäòÌᤷ¤Æ¡Ä¤­¤Á¤ó¤È¼ÁÌä¤Ë²óÅú¤·¤Æ¤Ê¤«¤Ã¤¿¤³¤È¤Ëµ¤¤¬ÉÕ¤¤¤¿¤Î¤Ç²óÅú¡£

> ²èÌ̤ι¹¿·¤Ë¤¢¤Ã¤¿await ¤Î¥Ñ¥é¥á¡¼¥¿¤Ï¤É¤Î¤è¤¦¤ËÀßÄꤷ¤¿¤é¤è¤¤¤Î¤Ç¤·¤ç¤¦¤«

¤¦¤ó¡¢¤½¤ì̵Íý¡£
awaitÌ¿Îá¤Ç¤Ï¡£

¸å¤ÇÄ´¤Ù¤Æ¤ß¤¿¤È¤³¤í¥ê¥Õ¥ì¥Ã¥·¥å¥ì¡¼¥È¤È¥¿¥¤¥ß¥ó¥°¤ò¹ç¤ï¤»¤ë¤Ë¤ÏVSYNCƱ´ü¤ò¤È¤ë¤È¤¤¤¦ÊýË¡¤¬¤¢¤ë¤è¤¦¤Ç¤¹¤¬¡¢DirectXÅù¤¬É¬Íפߤ¿¤¤¤Ç¤¹¡£
¤³¤Î¼êË¡¤Ï¼ç¤ËCPUÉé²ÙÄ㸺¤è¤ê¤â¡¢²èÌ̤ΤÁ¤é¤Ä¤­¡Ê¥Æ¥£¥¢¥ê¥ó¥°¡Ë¤òÍÞ¤¨¤ëÌÜŪ¤ÇÍѤ¤¤é¤ì¤Æ¤¤¤ë¤è¤¦¤Ç¤¹¡£

¤³¤Î¤Á¤é¤Ä¤­¤Ïµ¤¤Ë¤·¤Ê¤±¤ì¤Ðµ¤¤Ë¤Ê¤é¤Ê¤¤¥ì¥Ù¥ë¤Î¤â¤Î¤Ç¤¹¡£¡Ê¿Í¤Ë¤â¤è¤ë¤È»×¤¤¤Þ¤¹¤¬¡Ë
´Êñ¤Ê¼ÂÁõ¤Ï¤¬Æñ¤·¤½¤¦¤Ê¤Î¤Ç¡¢await¤Ç60fps¶áÊÕ¤ÇÆ°ºî¤¹¤ë¤è¤¦¤Ëºî¤Ã¤¿¤Û¤¦¤¬¼ê·Ú¤Ç¤è¤¤¤È»×¤¤¤Þ¤¹¡£



ANTARES

¥ê¥ó¥¯

2011/1/16(Sun) 02:50:48|NO.36625

>d3getfps¤Ï²áµî1secʬ¤Î¥Õ¥ì¡¼¥à¿ô¤ò¥«¥¦¥ó¥È¤·¤Æ
>ɽ¼¨¤·¤Æ¤ë¤Î¤Ç¡¢ÂÔ¤Á»þ´ÖÊѤ¨¤Æ¤«¤éfpsÃͤÎɽ¼¨¤¬
>°ÂÄꤹ¤ë¤Þ¤Ç1É䫤«¤ë»ÅÍͤǤ¹¡£
¡¡¥µ¥ó¥×¥ê¥ó¥°»þ´Ö¤ò¤È¤Ã¤Æ¤ß¤¿¤È¤³¤í¡¢³Î¤«¤Ë°ÂÄꤷ¤Þ¤·¤¿¡£
¥µ¥ó¥×¥ê¥ó¥°»þ´Ö£±ÉäÀ¤È¤Þ¤ÀÉÔ°ÂÄê¤À¤Ã¤¿¤Î¤Ç1.2Éäˤ·¤Æ¤ß¤Þ¤·¤¿¡£

¤Ç¤â¡¢¤½¤¦¤¹¤ë¤È¡¢¡Öawait 16Åù¤¬ÉÔ°ÂÄê¡×¤Îº¬µò¤¬¤Ê¤¯¤Ê¤ë¤Î¤Ç¤Ï¤È
»×¤¤¡¢NO.36607¤Î¥¹¥¯¥ê¥×¥È¤ò¼Â¹Ô¤·¤Æ¤ß¤Þ¤·¤¿¤¬¡¢
16¤À¤±¡¢°ÂÄꤷ¤¿¸å¤Ç¥Þ¥¦¥¹¤òÆ°¤«¤¹¤ÈÃͤ¬Íð¤ì¤Þ¤¹¤Í¡£


#include "d3m.hsp" #uselib "user32.dll" #func SetTimer "SetTimer" int,int,int,nullptr #func KillTimer "KillTimer" int,int #define WM_TIMER 0x0113 start=8 ;await vend=40 ;await interval=1 ;1¥¹¥Æ¥Ã¥×¤Î·×¬»þ´Ö¡ÊÉÃ¡Ë samptime=1200 ;f3getfps¥µ¥ó¥×¥ê¥ó¥°»þ´Ö¡Ê¥ß¥êÉÃ¡Ë musi=1 ;ÀèƬ£±¹Ô¤Ï¿®ÍѤǤ­¤Ê¤¤ if start>=musi: start-=musi ndim=vend-start+1 dim anum,ndim dim aval,ndim ddim aver,ndim dim amin,ndim dim amax,ndim t=start i=0 screen 0,640,640,,0,0 font msgothic,16 objmode 2 c=samptime/1000+interval title ""+c+"ÉäªÂÔ¤Á¤¯¤À¤µ¤¤" onexit goto *l_exit oncmd gosub *l_ontimer,WM_TIMER timerID = 1 f=0 ;ËÜÈ֥ե饰¡£0¤Î¤È¤­¤Ïf3getfps¤Î¥µ¥ó¥×¥ê¥ó¥° timeoutValue=sampt gosub *l_setTimer *main redraw 1 : await t : redraw 0 : color 255, 255, 255 : boxf : color : pos 0,0 fps=d3getfps() if fps>0 { sum+=fps num++ if fps<min: min=fps if fps>max: max=fps } goto *main *l_ontimer KillTimer hwnd,timerID if f==0 { ;f3getfps¤Î¥µ¥ó¥×¥ê¥ó¥°¤¬½ª¤ï¤Ã¤¿¤Î¤ÇËÜÈÖ³«»Ï f=1 timeoutValue=interval*1000 gosub *l_setTimer goto *main } ;ËÜÈÖ½ªÎ» anum.i=num aval.i=t aver.i=double(sum)/num amin.i=min amax.i=max title "i="+i+" t="+t+" sum="+sum+" num="+num+" ave="+aver.i+" min="+min+" max="+max i++ t++ if t<=vend { ;f3getfps¤Î¥µ¥ó¥×¥ê¥ó¥°³«»Ï f=0 timeoutValue=samptime gosub *l_setTimer goto *main } s="await ²ó¿ô Ê¿¶Ñ ºÇ¾® ºÇÂç\n" repeat ndim-musi,musi s+=strf(" %3d %3d %4.1f %3d %3d\n",aval.cnt,anum.cnt,aver.cnt,amin.cnt,amax.cnt) loop mesbox s,640,640 stop *l_setTimer num=0 sum=0 min=1000 max=0 SetTimer hwnd,timerID,timeoutValue timerID = stat return *l_exit KillTimer hwnd,timerID end



takaya

¥ê¥ó¥¯

2011/1/16(Sun) 15:07:19|NO.36631

¼ÁÌä¼Ô¤Ï²¿½è¤Ë¡¦¡¦¡¦



SU-­·

¥ê¥ó¥¯

2011/1/16(Sun) 16:05:38|NO.36632

¤¹¤ß¤Þ¤»¤ó¡£ÊÖ¿®¤¬¤ª¤½¤¯¤Ê¤ê¤Þ¤·¤¿

¤¿¤¯¤µ¤ó¤Î¥¢¥É¥Ð¥¤¥¹¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹¡£
ÍÍ¡¹¤Ê°Õ¸«¤¬Ê¹¤±¤Æ½õ¤«¤ê¤Þ¤·¤¿¡£
´ª°ã¤¤¤ä¤Þ¤ÀÃΤé¤Ê¤¤Éôʬ¤â¤¢¤Ã¤¿¤Î¤ÇÄ´¤Ù¤Æ¤ß¤¿¤¤¤È»×¤¤¤Þ¤¹



ÀèÇÚ

¥ê¥ó¥¯

2011/1/16(Sun) 19:26:32|NO.36645

GENKI¤µ¤ó¤¹¤¤¤Þ¤»¤ó¤Í¡£
˺¤ì¤¿¤È¤¤¤¦¤Î¤ÏÈÝÄê¤Ç¤­¤Þ¤»¤ó¤¬
¥¯¥Ã¥­¡¼°ìÍ÷¥Ä¡¼¥ë¤ò»È¤Ã¤Æ˺¤ì¤¿¥Ñ¥¹¥ï¡¼¥É¤òÆÀ¤ë¤³¤È¤â
ºï½üÍѥѥ¹¥ï¡¼¥É¤Îpassword°À­¤ò¸å¤«¤é̵¸ú¤Ë¤·¤Æ¥Ñ¥¹¥ï¡¼¥É¤òɽ¼¨¤µ¤»¤ë¤³¤È¤â
¥¯¥ê¥Ã¥¯¤·¤¿Í×ÁǤξܺ٤ʾðÊó¡ÊÉú¤»¤é¤ì¤Æ¤¤¤ë¥Ñ¥¹¥ï¡¼¥É¤Ç¤µ¤¨¡Ë¤òɽ¼¨¤¹¤ë¤³¤È¤â
¤³¤Á¤é¤Ç²Äǽ¤À¤Ã¤¿¤Î¤Ç¤¹¤¬¡¢
¤³¤³¤Î´ÉÍý¿Í¤ä¶¨ÎϼԤϸ·¤·¤¤È¯¸À¤òºï½ü¤¹¤ë¤Î¤¬¼ñÌ£¤é¤·¤Î¤Ç
¾Ã¤µ¤ì¤ë¤À¤í¤¦¤È»×¤Ã¤Æ¤ª¤ê¤Þ¤·¤¿¡£



ONION software Copyright 1997-2023(c) All rights reserved.