[過去ログ] 【軽量】godot engine【無料】 part3 (1002レス)
前次1-
抽出解除 必死チェッカー(本家) (べ) 自ID レス栞 あぼーん

このスレッドは過去ログ倉庫に格納されています。
次スレ検索 歴削→次スレ 栞削→次スレ 過去ログメニュー
リロード規制です。10分ほどで解除するので、他のブラウザへ避難してください。
785
(1): 名前は開発中のものです。 [sage] 2024/07/02(火) 09:05:04.55 ID:b/scUpaU(1/4) AAS
https://godot-jp.github.io/reference/gdscript%E3%81%AB%E3%81%A4%E3%81%84%E3%81%A6/%E6%95%B0%E5%80%A4%E3%81%AB%E3%81%A4%E3%81%84%E3%81%A6/
それはintだよ つまりintはlong相当(64bit)、でもfloatは32bitでdoubleじゃない
floatは有効桁数が約7桁、doubleは有効桁数が約15〜16桁 桁違うからすぐわかるよ
786
(2): 名前は開発中のものです。 [sage] 2024/07/02(火) 09:18:30.05 ID:b/scUpaU(2/4) AAS
いや間違いだった。doubleって書いてあった
https://docs.godotengine.org/ja/4.x/classes/class_float.html#class-float
ただしデフォでは32bitでprecision=doubleオプションを有効にしたときdoubleになると書いてある
790
(1): 名前は開発中のものです。 [sage] 2024/07/02(火) 10:25:43.85 ID:b/scUpaU(3/4) AAS
>>786
https://godotengine.org/article/emulating-double-precision-gpu-render-large-worlds/
Note: This change has already been merged into the engine, however it is only available in the “doubles” version of the engine, so to take advantage of it, you will still have to build the engine yourself using the compile flag precision=double (formerly float=64).
ってなってるから自分でオプションを付けてビルドしてくれって事みたいだよ
shaderもdoubleにしないと効果ないみたいなので最初からdoubleがデフォだと無駄が多い気がする
791: 名前は開発中のものです。 [sage] 2024/07/02(火) 10:53:31.94 ID:b/scUpaU(4/4) AAS
https://github.com/godotengine/godot/blob/master/doc/classes/float.xml
正しい情報が迷子で分かり辛過ぎるな

floatは64bit倍精度だが、メソッドやプロパティ/Vector2/3ではデフォが32bitで
precision=doubleを使うと全部64bitになるらしい事が書いてある
デフォは計算するとほぼ確実に32bitになるんじゃないのかな?

開発者やマニュアル書いてる人も大混乱してるとかそういうオチのような気がしないでも…
前次1-
スレ情報 赤レス抽出 画像レス抽出 歴の未読スレ AAサムネイル

ぬこの手 ぬこTOP 0.039s